1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CBPRuntime

Открытые члены

 __clone ()
 __call ($name, $arguments)
 startRuntime ()
 stopRuntime ()
 createDebugWorkflow (int $templateId, array $documentId, $workflowParameters=[])
 getWorkflow ($workflowId, $silent=false)
 hasWorkflow (string $workflowId)
 getWorkflows ()
 onWorkflowStatusChanged ($workflowId, $status)
 getService ($name)
 getDebugService ($name)
 addService ($name, CBPRuntimeService $service)
 includeActivityFile ($code)
 getActivityDescription ($code, $lang=false)
 getActivityReturnProperties ($code, $lang=false)
 getResourceFilePath ($activityPath, $filePath)
 executeResourceFile ($activityPath, $filePath, $arParameters=array())
 searchActivitiesByType ($type, array $documentType=null)
 getRestActivities ($lang=false, $documentType=null)
 getRestRobots ($lang=false, $documentType=null)
 unserializeWorkflowStream (string $stream)
 checkActivityFilter ($filter, $documentType)

Открытые статические члены

static getRuntime ()
static isFeatureEnabled ($featureName='')
static generateWorkflowId ()
static sendExternalEvent ($workflowId, $eventName, $arEventParameters=[])

Поля данных

const EXCEPTION_CODE_INSTANCE_TARIFF_LIMIT_EXCEED = 402
const EXCEPTION_CODE_INSTANCE_NOT_FOUND = 404
const EXCEPTION_CODE_INSTANCE_LOCKED = 423
const EXCEPTION_CODE_INSTANCE_TERMINATED = 499
const REST_ACTIVITY_PREFIX = 'rest_'
const ACTIVITY_API_VERSION = 1

Защищенные члены

 getWorkflowInstance (string $workflowId)

Подробное описание

Workflow runtime.

@method \CBPSchedulerService getSchedulerService() @method \CBPStateService getStateService() @method \CBPTrackingService getTrackingService() @method \CBPTaskService getTaskService() @method \CBPHistoryService getHistoryService() @method \CBPDocumentService getDocumentService() @method Bizproc\Service\Analytics getAnalyticsService() @method Bizproc\Service\User getUserService()

См. определение в файле runtime.php строка 21

Методы

◆ __call()

__call ( $name,
$arguments )

См. определение в файле runtime.php строка 97

◆ __clone()

__clone ( )

См. определение в файле runtime.php строка 92

◆ addService()

addService ( $name,
CBPRuntimeService $service )

Adds new service to runtime. Runtime should be stopped.

Аргументы
string$name- Service code.
CBPRuntimeService$service- Service object.

См. определение в файле runtime.php строка 440

◆ checkActivityFilter()

checkActivityFilter ( $filter,
$documentType )

См. определение в файле runtime.php строка 944

◆ createDebugWorkflow()

createDebugWorkflow ( int $templateId,
array $documentId,
$workflowParameters = [] )

См. определение в файле runtime.php строка 273

◆ executeResourceFile()

executeResourceFile ( $activityPath,
$filePath,
$arParameters = array() )

См. определение в файле runtime.php строка 661

◆ generateWorkflowId()

generateWorkflowId ( )
static

См. определение в файле runtime.php строка 401

◆ getActivityDescription()

getActivityDescription ( $code,
$lang = false )

См. определение в файле runtime.php строка 554

◆ getActivityReturnProperties()

getActivityReturnProperties ( $code,
$lang = false )

См. определение в файле runtime.php строка 608

◆ getDebugService()

getDebugService ( $name)

См. определение в файле runtime.php строка 424

◆ getResourceFilePath()

getResourceFilePath ( $activityPath,
$filePath )

См. определение в файле runtime.php строка 647

◆ getRestActivities()

getRestActivities ( $lang = false,
$documentType = null )
Аргументы
bool$langLanguage ID.
null | array$documentTypeDocument type.
Возвращает
array
Исключения

Bitrix\Main\ArgumentException

См. определение в файле runtime.php строка 766

◆ getRestRobots()

getRestRobots ( $lang = false,
$documentType = null )
Аргументы
bool$langLanguage ID.
null | array$documentTypeDocument type.
Возвращает
array
Исключения

Bitrix\Main\ArgumentException

См. определение в файле runtime.php строка 787

◆ getRuntime()

getRuntime ( )
static

Static method returns runtime object. Singleton pattern.

Возвращает
CBPRuntime

См. определение в файле runtime.php строка 80

◆ getService()

getService ( $name)

Returns service instance by its code.

Аргументы
mixed$name- Service code.
Возвращает
mixed|CBPSchedulerService|CBPStateService|CBPTrackingService|CBPTaskService|CBPHistoryService|CBPDocumentService|Bizproc\Service\Analytics - Service instance or null if service is not found.

См. определение в файле runtime.php строка 414

◆ getWorkflow()

getWorkflow ( $workflowId,
$silent = false )

Returns existing workflow instance by its ID

Аргументы
string$workflowIdID of the workflow instance.
bool$silent
Возвращает
CBPWorkflow
Исключения
Exception

См. определение в файле runtime.php строка 327

◆ getWorkflowInstance()

getWorkflowInstance ( string $workflowId)
protected

См. определение в файле runtime.php строка 367

◆ getWorkflows()

getWorkflows ( )

См. определение в файле runtime.php строка 362

◆ hasWorkflow()

hasWorkflow ( string $workflowId)

См. определение в файле runtime.php строка 352

◆ includeActivityFile()

includeActivityFile ( $code)

Includes activity file by activity code.

Аргументы
string$code- Activity code.

См. определение в файле runtime.php строка 500

◆ isFeatureEnabled()

isFeatureEnabled ( $featureName = '')
static

Method checks if feature is enabled.

Аргументы
string$featureNameFeature name. Checks default if empty.
Возвращает
bool

См. определение в файле runtime.php строка 112

◆ onWorkflowStatusChanged()

onWorkflowStatusChanged ( $workflowId,
$status )

См. определение в файле runtime.php строка 377

◆ searchActivitiesByType()

searchActivitiesByType ( $type,
array $documentType = null )

См. определение в файле runtime.php строка 680

◆ sendExternalEvent()

sendExternalEvent ( $workflowId,
$eventName,
$arEventParameters = [] )
static

Static method transfer event to the specified workflow instance.

Аргументы
mixed$workflowId- ID of the workflow instance.
mixed$eventName- Event name.
mixed$arEventParameters- Event parameters.

См. определение в файле runtime.php строка 466

◆ startRuntime()

startRuntime ( )

Public method starts runtime

См. определение в файле runtime.php строка 137

◆ stopRuntime()

stopRuntime ( )

Public method stops runtime

См. определение в файле runtime.php строка 167

◆ unserializeWorkflowStream()

unserializeWorkflowStream ( string $stream)

См. определение в файле runtime.php строка 803

Поля

◆ ACTIVITY_API_VERSION

const ACTIVITY_API_VERSION = 1

См. определение в файле runtime.php строка 30

◆ EXCEPTION_CODE_INSTANCE_LOCKED

const EXCEPTION_CODE_INSTANCE_LOCKED = 423

См. определение в файле runtime.php строка 25

◆ EXCEPTION_CODE_INSTANCE_NOT_FOUND

const EXCEPTION_CODE_INSTANCE_NOT_FOUND = 404

См. определение в файле runtime.php строка 24

◆ EXCEPTION_CODE_INSTANCE_TARIFF_LIMIT_EXCEED

const EXCEPTION_CODE_INSTANCE_TARIFF_LIMIT_EXCEED = 402

См. определение в файле runtime.php строка 23

◆ EXCEPTION_CODE_INSTANCE_TERMINATED

const EXCEPTION_CODE_INSTANCE_TERMINATED = 499

См. определение в файле runtime.php строка 26

◆ REST_ACTIVITY_PREFIX

const REST_ACTIVITY_PREFIX = 'rest_'

См. определение в файле runtime.php строка 28


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/bizproc/classes/general/runtime.php