Метод releaseByResourceId

public

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

public function releaseByResourceId(ManagedAgentResourceType $type, string $resourceId): Result

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

Описание

Drops the ownership row of a resource that is no longer live, which is what the workflow completion and the workflow kill events do. One indexed read over (TYPE, RESOURCE_ID) answers whether the resource is managed at all, therefore an unmanaged workflow finishes immediately. The logical lock is not needed: the row of a resource that has already ended cannot be restored by a reconciliation. Registry tables that are not installed yet are the same exception as in {@see self::classify()} and not a failed read: without them no resource can be owned, so there is nothing to release.

Параметры

2
Имя Тип По умолчанию Флаги
$type ManagedAgentResourceType —
—
$resourceId string —
—

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

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

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

Исходный код

PHP