Метод isRestartableLaunchedTemplate
Сигнатура метода
public function isRestartableLaunchedTemplate(int $templateId): bool
Возвращает:
bool
Описание
Actuality predicate for a restart target (API-01 ERR-002). True only when $templateId is still a started launched AI-agent copy (TYPE=Nodes, SYSTEM_CODE IS NULL, ACTIVATED_AT set), regardless of owner. The restart action uses it to tell a stale template (deleted, or changed so it is no longer a restartable launched copy) from a genuine access denial: staleness is existence only, ownership is the separate canManageLaunchedTemplate() check. Bypasses the owner filter (isUserAdmin=true) precisely because it must not fold ownership into staleness.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Public/Provider/WorkflowTemplate/AiAgentProvider.php