Метод startTemplate
Сигнатура метода
public function startTemplate(int $templateId, ?int $userId = null, bool $asRestart = false, array $startParameters = []): AiAgentStartResult
Возвращает:
AiAgentStartResult
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$templateId
|
int
|
—
|
—
|
$userId
|
?int
|
null
|
—
|
$asRestart
|
bool
|
false
|
—
|
$startParameters
|
array
|
[]
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Service/AiAgentGrid/SystemTemplateActivationService.php
Расположение метода в файле
Строки
131–206