Метод createInstance

private

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

private function createInstance(ManagedAgentIdentity $identity, int $userId, SystemAiAgentActivationParameters $activation, array $source, array $configuration): SystemAiAgentLifecycleResult

Возвращает: SystemAiAgentLifecycleResult

Описание

Creates the instance, its copy and the resources of the first start, and publishes the result. A unique key violation is never answered by a blind repeated insert: the stored row is reread, its identity components are compared strictly and the same state parsing is applied to it.

Параметры

5
Имя Тип По умолчанию Флаги
$identity ManagedAgentIdentity —
—
$userId int —
—
$activation SystemAiAgentActivationParameters —
—
$source array —
—
$configuration array —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/AiAgent/Lifecycle/Service/SystemAiAgentLifecycleService.php
Расположение метода в файле
Строки 655–724

Исходный код

PHP