CBPRuntime
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
Method | Description | Available from version |
---|---|---|
GetRuntime | This static method returns a class instance, presenting the current runtime. | |
CreateWorkflow | This method creates a new workflow instance for the specified document. | |
GetService | This method returns a runtime service instance by its name. | |
GetWorkflow | This method returns a workflow instance by its ID. | |
SendExternalEvent | This static method sends an external event to the specified workflow. | |
StartRuntime | This method launches a runtime. Runtime must always be launched prior to being used. |
© «Bitrix24», 2001-2024