Метод enrichJobFinishEventBuilder

protected static

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

protected static function enrichJobFinishEventBuilder(AIBaseEvent $builder, Result $result): void

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

Описание

Lets the operation add its own domain fields to the assembled job finish event - a status of its own semantics and extra params. Called only on a successful job finish, where the domain result exists, and after the generic status is set, so the operation is free to override it. The error path builds its event from a generic Result with no domain payload and never calls this. Whether the event is sent at all stays with the general flow - the hook cannot cancel the sending.

Параметры

2
Имя Тип По умолчанию Флаги
$builder AIBaseEvent —
—
$result Result —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/integration/ai/operation/abstractoperation.php
Расположение метода в файле
Строки 1814–1816

Исходный код

PHP