CBPWorkflow :: InitializeActivity: Bitrix method

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

    
public function InitializeActivity(CBPActivity $activity)
    {
        if (
$activity == null)
            throw new 
CBPArgumentNullException("activity");

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

        
$activity->Initialize();
    }