CBPWorkflow :: ExecuteActivity: Bitrix method

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

    
public function ExecuteActivity(CBPActivity $activity$arEventParameters = array())
    {
        if (
$activity == null)
            throw new 
Exception("activity");

        if (
$activity->executionStatus != CBPActivityExecutionStatus::Initialized)
            throw new 
Exception("InvalidExecutionState");

        
$activity->SetStatus(CBPActivityExecutionStatus::Executing$arEventParameters);
        
$this->AddItemToQueue(array($activityCBPActivityExecutorOperationType::Execute));
    }