CBPWorkflow::executeActivity

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

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

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

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