Метод publish
Сигнатура метода
private function publish(ManagedAgentIdentity $identity, ManagedAgentInstance $instance, array $source, ?string &$brokenInvariant = null): ?string
Возвращает:
?string
Описание
Publishes the schedules of the copy and fixes the enabled state in one final transaction. The transaction locks the row of the copy and the rows of its settings and verifies the origin, the installed revision, the declarations and the actual configuration against the stored signature again, so a copy that was changed while the workflow was starting never reaches the enabled state.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$identity
|
ManagedAgentIdentity
|
—
|
—
|
$instance
|
ManagedAgentInstance
|
—
|
—
|
$source
|
array
|
—
|
—
|
$brokenInvariant
|
?string
|
null
|
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/AiAgent/Lifecycle/Service/SystemAiAgentLifecycleService.php
Расположение метода в файле
Строки
874–933