CBPRuntime - runtime class. It creates workflows, as well as infrastructure for their use.

Runtime within one hit exists in a single instance. You can receive a runtime instance via this code:

$runtime = CBPRuntime::GetRuntime();

Class methods

MethodDescriptionAvailable from version
GetRuntimeThis static method returns a class instance, presenting the current runtime.
CreateWorkflowThis method creates a new workflow instance for the specified document.
GetServiceThis method returns a runtime service instance by its name.
GetWorkflowThis method returns a workflow instance by its ID.
SendExternalEventThis static method sends an external event to the specified workflow.
StartRuntimeThis method launches a runtime. Runtime must always be launched prior to being used.

© «Bitrix24», 2001-2024