Метод persistRegistration
Сигнатура метода
private function persistRegistration(int $instanceId, ManagedAgentResourceType $type, string $resourceId, array $payload): Result
Возвращает:
Result
Описание
Writes the ownership row, or keeps the stored one when the logical key is already registered. A repeated registration never inserts a second row. Technical data are merged over the stored payload only after they passed the closed schema; a stored payload that does not pass it is replaced instead of being merged with, because its shape is unknown.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$instanceId
|
int
|
—
|
—
|
$type
|
ManagedAgentResourceType
|
—
|
—
|
$resourceId
|
string
|
—
|
—
|
$payload
|
array
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/AiAgent/Lifecycle/Service/ManagedAgentResourceRegistry.php
Расположение метода в файле
Строки
668–696