...Человеческий поиск в разработке...
- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/classes/general/document.php
- Класс: CBPDocument
- Вызов: CBPDocument::killWorkflow
static function killWorkflow($workflowId, $terminate = true, $documentId = null) { $errors = array(); if ($terminate) static::TerminateWorkflow($workflowId, $documentId, $errors); if (!$errors) { BizprocWorkflowEntityWorkflowInstanceTable::delete($workflowId); CBPTaskService::DeleteByWorkflow($workflowId); CBPStateService::DeleteWorkflow($workflowId); if (!BizprocDebuggerSessionManager::isDebugWorkflow($workflowId)) { CBPTrackingService::DeleteByWorkflow($workflowId); } } return $errors; }