...Человеческий поиск в разработке...
- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/classes/general/workflow.php
- Класс: CBPWorkflow
- Вызов: CBPWorkflow::resume
public function resume() { if ($this->GetWorkflowStatus() != CBPWorkflowStatus::Suspended) throw new Exception("CanNotResumeInstance"); try { $this->SetWorkflowStatus(CBPWorkflowStatus::Running); $this->RunQueue(); } catch (Exception $e) { $this->Terminate($e); throw $e; } if ($this->rootActivity->executionStatus == CBPActivityExecutionStatus::Closed) { $this->SetWorkflowStatus(CBPWorkflowStatus::Completed); } else { $workflowStatus = $this->GetWorkflowStatus(); if ($workflowStatus == CBPWorkflowStatus::Running) $this->SetWorkflowStatus(CBPWorkflowStatus::Suspended); } $this->persister->SaveWorkflow($this->rootActivity, true); }