Метод isRestartableLaunchedTemplate

public

Сигнатура метода

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Public/Provider/WorkflowTemplate/AiAgentProvider.php
Расположение метода в файле
Строки 113–116

Исходный код

PHP