Метод register

public

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

public function register(int $templateId, ManagedAgentResourceType $type, string $resourceId, array $data = []): Result

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

Описание

Barrier and registration of a resource produced outside the lifecycle of a registered workflow: a schedule row inside the transaction that saves it, the storage scope right after the copy is bound and the reservation of a bot code before the start. A resource created synchronously inside a registered workflow is covered by the registration of that workflow and does not pass this barrier.

Параметры

4
Имя Тип По умолчанию Флаги
$templateId int —
—
$type ManagedAgentResourceType —
—
$resourceId string —
—
$data array []
—

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

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

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

Исходный код

PHP