CBPRuntime :: StopRuntime: Bitrix method

      
<?php 
//  CBPRuntime :: StopRuntime()
//  /dist/bitrix/modules/bizproc/classes/general/runtime.php:191

    
public function StopRuntime()
    {
        if (!
$this->isStarted)
            return;

        
/** @var CBPWorkflow $workflow */
        
foreach ($this->arWorkflows as $key => $workflow)
            
$workflow->OnRuntimeStopped();

        foreach (
$this->arServices as $serviceId => $service)
        {
            
$service->stop();
        }

        
$this->isStarted false;
    }