Метод copyAndStartAction
Сигнатура метода
public function copyAndStartAction(int $templateId): array
Возвращает:
array
Описание
Copies a launchable AI-agent template and starts the copy. Admission is the shared launchable predicate (PRED-01), the same one the pre-flight check uses, so the two paths cannot diverge: both a system template and a user-created one (added via the designer) may be copied, while a launched copy, a template of another type/section, a missing template and a system template hidden by the registry are all rejected as accessDenied.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Infrastructure/Controller/Integration/AiAgent/Template.php
Расположение метода в файле
Строки
215–272