CBPWorkflow :: FaultActivity: Bitrix method

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

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

        if (
$activity->executionStatus == CBPActivityExecutionStatus::Closed)
        {
            if (
$activity->parent == null)
                
$this->Terminate($e);
            else
                
$this->FaultActivity($activity->parent$e$arEventParameters);
        }
        else
        {
            
$activity->SetStatus(CBPActivityExecutionStatus::Faulting);
            
$this->AddItemToQueue(array($activityCBPActivityExecutorOperationType::HandleFault$e));
        }
    }