Метод describeRestActivity

private

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

private function describeRestActivity(string $code, array $documentType): Result|ActivityAiDescriptionResult

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

Описание

Builds a strict settings schema for a REST activity from its RestActivityTable entry. Intentional asymmetry with the file-based lenient path (buildMapSettingsLenient): REST properties come from a machine-readable database record (RestActivityTable.PROPERTIES) rather than a PHP file. A required property whose type cannot be expressed means the DB record is malformed - returning a partial schema would silently hide data loss. For REST activities the strict NOT_SUITABLE response is therefore preferable to partial/lenient acceptance. File-based activities tolerate partial schemas because their property maps are richer and partial coverage is a normal authoring reality (not a data-integrity violation).

Параметры

2
Имя Тип По умолчанию Флаги
$code string —
—
$documentType array —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/integration/aiassistant/activityaiautodescriber.php
Расположение метода в файле
Строки 222–271

Исходный код

PHP