Метод buildRestartPayload
Сигнатура метода
public function buildRestartPayload(int $templateId, int $userId): AiListenerParameters
Возвращает:
AiListenerParameters
Описание
Server-side EVENT-01 restart payload. Every field is derived from server state, never from the request (IDOR guard): restartRunId is a freshly pre-generated, unique run id (so repeated restart clicks never collapse into one), previousRunId/agentInstanceId are the last run of this template resolved from durable workflow state (so an already finished run still yields a non-empty id, keeping the audit chain), initiatorId is the acting user and timestamp is the server clock.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
$userId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Service/AiAgentGrid/SystemTemplateActivationService.php
Расположение метода в файле
Строки
267–282