CBPWorkflow :: RunQueue: Bitrix method

      
<?php 
//  CBPWorkflow :: RunQueue()
//  /dist/bitrix/modules/bizproc/classes/general/workflow.php:431

    
private function RunQueue()
    {
        while (
true)
        {
            
$this->ProcessQueuedEvents();

            
$item array_shift($this->activitiesQueue);
            if (
$item == null)
                return;

            try
            {
                
$this->RunQueuedItem($item[0], $item[1], (count($item) > $item[2] : null));
            }
            catch (
Exception $e)
            {
                
$this->FaultActivity($item[0], $e);

                if (
$this->GetWorkflowStatus() == CBPWorkflowStatus::Terminated)
                    return;
            }
        }
    }