CBPRuntime :: StartRuntime: Bitrix method

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

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

        if (!
$this->arServices["SchedulerService"])
        {
            
$this->arServices["SchedulerService"] = new CBPSchedulerService();
        }
        if (!
$this->arServices["StateService"])
        {
            
$this->arServices["StateService"] = new CBPStateService();
        }
        if (!
$this->arServices["TrackingService"])
        {
            
$this->arServices["TrackingService"] = new CBPTrackingService();
        }
        if (!
$this->arServices["TaskService"])
        {
            
$this->arServices["TaskService"] = new CBPTaskService();
        }
        if (!
$this->arServices["HistoryService"])
        {
            
$this->arServices["HistoryService"] = new CBPHistoryService();
        }
        if (!
$this->arServices["DocumentService"])
        {
            
$this->arServices["DocumentService"] = new CBPDocumentService();
        }
        if (!
$this->arServices["AnalyticsService"])
        {
            
$this->arServices["AnalyticsService"] = new Bizproc\Service\Analytics();
        }

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

        
$this->isStarted true;
    }