Метод fail
Сигнатура метода
private function fail(string $operation, ?ManagedAgentIdentity $identity, SystemAiAgentErrorCode $code, ?string $internalCode = null, ?SystemAiAgentLifecycleOutcome $outcome = null, ?int $instanceId = null, ?int $userId = null, ?string $cause = null): SystemAiAgentLifecycleResult
Возвращает:
SystemAiAgentLifecycleResult
Параметры
8| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$operation
|
string
|
—
|
—
|
$identity
|
?ManagedAgentIdentity
|
—
|
—
|
$code
|
SystemAiAgentErrorCode
|
—
|
—
|
$internalCode
|
?string
|
null
|
—
|
$outcome
|
?SystemAiAgentLifecycleOutcome
|
null
|
—
|
$instanceId
|
?int
|
null
|
—
|
$userId
|
?int
|
null
|
—
|
$cause
|
?string
|
null
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/AiAgent/Lifecycle/Service/SystemAiAgentLifecycleService.php
Расположение метода в файле
Строки
2143–2157