CBPCompositeActivity :: SetWorkflow: Bitrix method

      
<?php 
//  CBPCompositeActivity :: SetWorkflow()
//  /dist/bitrix/modules/bizproc/classes/general/compositeactivity.php:7

    
public function SetWorkflow(CBPWorkflow $workflow)
    {
        
parent::SetWorkflow($workflow);
        foreach (
$this->arActivities as $activity)
        {
            if (!
method_exists($activity'SetWorkflow'))
            {
                throw new 
Exception('ActivitySetWorkflow');
            }
            
$activity->SetWorkflow($workflow);
        }
    }