Метод resolve

public

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

public function resolve(ManagedAgentIdentity $identity): Result

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

Описание

Resolves the source of the identity, or fails with {@see self::ERROR_AGENT_NOT_AVAILABLE} and a stable reason in the custom data of the error. No caller value is carried by a rejection. Successful data: <ul> <li> templateId: int, id of the installed system template <li> systemCode: string, exactly as stored <li> documentType: array{0: string, 1: string, 2: string}, complex document type of the source <li> installedRevision: string, revision of the source logic, which the copy stores as its installed one <li> sections: array&lt;string, array{declarations: array, field: string, maxSerializedLength: int}&gt; <li> producers: list&lt;array{nodeType: string, resourceType: ManagedAgentResourceType, synchronous: bool, ownershipProof: string}&gt; <li> nodeTypes: array&lt;string, bool&gt;, node type of the graph =&gt; whether it is a trigger </ul>

Параметры

1
Имя Тип По умолчанию Флаги
$identity ManagedAgentIdentity —
—

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

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

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

Исходный код

PHP