Метод onCreateWorkflow
Сигнатура метода
public static function onCreateWorkflow(mixed $templateId, mixed $documentId, array &$parameters, mixed $workflowId): void
Возвращает:
void
Описание
Barrier of a starting workflow, called before CBPWorkflow::initialize() and CBPStateService::addWorkflow(), so the future workflow id is owned before any state of it exists. Compatible bizproc event OnCreateWorkflow, whose positional arguments are the template id, the document id, the start parameters by reference and the id the workflow is about to get. The parameters are taken by reference because the registry consumes the internal one time marker of an enabling operation out of them.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
mixed
|
—
|
—
|
$documentId
|
mixed
|
—
|
—
|
$parameters
|
array
|
—
|
|
$workflowId
|
mixed
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/AiAgent/Lifecycle/EventHandler/WorkflowLifecycleEventHandler.php
Расположение метода в файле
Строки
41–61