Метод confirmAlreadyEnabled

private

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

private function confirmAlreadyEnabled(ManagedAgentIdentity $identity, int $userId, SystemAiAgentActivationParameters $activation, ManagedAgentInstance $instance): SystemAiAgentLifecycleResult

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

Описание

Confirms that the enabled instance still describes the requested activation, or names the conflict. The declarations of the managed copy are the schema of the check, therefore an update of the delivered source is not a conflict at all, while a manual change of the copy, of its effective configuration or of the launching user is one. A copy that is gone never answers "already enabled": the instance is moved into removal instead.

Параметры

4
Имя Тип По умолчанию Флаги
$identity ManagedAgentIdentity —
—
$userId int —
—
$activation SystemAiAgentActivationParameters —
—
$instance ManagedAgentInstance —
—

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

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

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

Исходный код

PHP