Метод adopt

private

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

private function adopt(int $instanceId, string $resourceId, array $registered, ManagedResourceCleanupBudget $budget): void

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

Описание

Registers an active workflow of the copy that has no ownership row yet, which closes the window between the start of a workflow and its registration. The rows of the whole portion are read at once, and every workflow of it still costs the one row of the budget its own lookup used to cost: what the portion changes is the number of queries and not the amount of work a pass is allowed to do.

Параметры

4
Имя Тип По умолчанию Флаги
$instanceId int —
—
$resourceId string —
—
$registered array —
—
$budget ManagedResourceCleanupBudget —
—

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

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

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

Исходный код

PHP