CBPWorkflow::cancelActivity

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPWorkflow
  4. cancelActivity
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/workflow.php
  • Класс: CBPWorkflow
  • Вызов: CBPWorkflow::cancelActivity
public function cancelActivity(CBPActivity $activity, $arEventParameters = array())
{
	if ($activity == null)
		throw new Exception("activity");

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

	$activity->SetStatus(CBPActivityExecutionStatus::Canceling, $arEventParameters);
	$this->AddItemToQueue(array($activity, CBPActivityExecutorOperationType::Cancel));
}

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