CBPRuntime :: onWorkflowStatusChanged: Bitrix method

      
<?php 
//  CBPRuntime :: onWorkflowStatusChanged()
//  /dist/bitrix/modules/bizproc/classes/general/runtime.php:314

    
public function onWorkflowStatusChanged($workflowId$status)
    {
        if (
            
$status === \CBPWorkflowStatus::Completed ||
            
$status === \CBPWorkflowStatus::Terminated ||
            
$status === \CBPWorkflowStatus::Suspended
        
)
        {
            unset(
$this->arWorkflows[$workflowId]);
        }
    }