...Человеческий поиск в разработке...
- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/classes/general/workflow.php
- Класс: CBPWorkflow
- Вызов: CBPWorkflow::closeActivity
public function closeActivity(CBPActivity $activity, $arEventParameters = array()) { switch ($activity->executionStatus) { case CBPActivityExecutionStatus::Executing: $activity->MarkCompleted($arEventParameters); return; case CBPActivityExecutionStatus::Canceling: $activity->MarkCanceled($arEventParameters); return; case CBPActivityExecutionStatus::Closed: return; case CBPActivityExecutionStatus::Faulting: $activity->MarkFaulted($arEventParameters); return; } throw new Exception("InvalidClosingState"); }