CBPWorkflow :: Reload: Bitrix method

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

    
public function Reload(CBPActivity $rootActivity)
    {
        
$this->rootActivity $rootActivity;
        
$rootActivity->SetWorkflow($this);

        switch (
$this->GetWorkflowStatus())
        {
            case 
CBPWorkflowStatus::Completed:
            case 
CBPWorkflowStatus::Terminated:
                throw new 
Exception("InvalidAttemptToLoad");
        }
    }