Метод detectSourceChangedWhileCopying

private

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

private function detectSourceChangedWhileCopying(int $systemTemplateId, int $copyId): void

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

Описание

Detection, not prevention. The graph of the source is read again inside the launch, so between the check of its trust and that read anyone allowed to publish the template can edit it: the restore lock coordinates the restores with each other and knows nothing about the editor of BizProc. Preventing that needs a lock or a transaction shared with the paths that edit the template, and those belong to the module that owns the templates. The outcome stays a fulfilled invariant and the restore stays successful: the copy exists and is active, the scenario cannot delete it, and reporting a failure would only spend an attempt of the owner of the invariant - the next cycle of which would find the same active copy and calm down. What the outcome does deserve is a trace, because it is the only sign that the graph that has been started may not be the delivered one.

Параметры

2
Имя Тип По умолчанию Флаги
$systemTemplateId int —
—
$copyId int —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/integration/bizproc/callassessmentaiagent.php
Расположение метода в файле
Строки 370–390

Исходный код

PHP