CBPWorkflow::faultActivity

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPWorkflow
  4. faultActivity
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/workflow.php
  • Класс: CBPWorkflow
  • Вызов: CBPWorkflow::faultActivity
public function faultActivity(CBPActivity $activity, Exception $e, $arEventParameters = array())
{
	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($activity, CBPActivityExecutorOperationType::HandleFault, $e));
	}
}

Добавить комментарий