Метод journal

private

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

private function journal(string $operation, ?ManagedAgentIdentity $identity, ?SystemAiAgentLifecycleOutcome $outcome, ?SystemAiAgentErrorCode $code, ?string $internalCode, ?int $instanceId, ?int $userId, ?string $cause = null): void

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

Описание

Writes the structured record of an outcome. The identity is represented by an HMAC token of its hash under a purpose of its own, so the records of one instance can be correlated without exposing the hash itself. The identity hash, the original context id, the parameters, the constants, the whole DTO and the text of an exception have no field here at all, and a field that could not be built is skipped instead of being written as it came.

Параметры

8
Имя Тип По умолчанию Флаги
$operation string —
—
$identity ?ManagedAgentIdentity —
—
$outcome ?SystemAiAgentLifecycleOutcome —
—
$code ?SystemAiAgentErrorCode —
—
$internalCode ?string —
—
$instanceId ?int —
—
$userId ?int —
—
$cause ?string null
—

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

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

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

Исходный код

PHP