Метод resolveLatestInstanceId
Сигнатура метода
private function resolveLatestInstanceId(int $templateId): string
Возвращает:
string
Описание
Id of the last run of the template, newest by start time. Resolved from b_bp_workflow_state, which outlives workflow completion (b_bp_workflow_instance rows are dropped once a run finishes, so they would resolve to '' for the main restart case of an already finished agent). The state id equals the run/instance id, and the query rides the (WORKFLOW_TEMPLATE_ID, STARTED) index.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Service/AiAgentGrid/SystemTemplateActivationService.php
Расположение метода в файле
Строки
290–308