Метод hasActiveLaunchedCopy
Сигнатура метода
public function hasActiveLaunchedCopy(string $systemCode): bool
Возвращает:
bool
Описание
Whether the system template $systemCode already has at least one active launched copy in the AI_AGENT section. Existence only: the caller needs a yes/no answer, never a count, an owner or a name. The link and the definition of an active copy both come from LaunchedCopyQuery, so this predicate cannot drift away from the grid filter that the user opens right after. Who launched the copy is deliberately not part of the predicate: any active copy visible in the grid counts, including one created by a trusted scenario. Hidden system codes are not excluded here either - hiding works by SYSTEM_CODE, and a launched copy always has none, so it cannot change the set of copies; it is a property of the source template instead (LaunchableTemplateResolver).
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$systemCode
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/Repository/WorkflowTemplate/AiAgentRepository.php