Метод stopPilot

public

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

public function stopPilot(int $templateId, int $actorId, int $expectedPilotId, bool $confirmedDraftOverwrite = false): Result

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

Описание

Stops the pilot: the snapshot and its audience go away, and the published scheme is kept as the draft of the template - but only while the template has no draft of its own. A template has one draft, and a draft appearing after a publication is always newer than the published scheme, so overwriting it would lose the later work. Such a stop deletes the pilot scheme instead of keeping it, and is only performed once the publisher has confirmed that. The pilot mark is not removed: it is what keeps a template with no common version hidden after the pilot is over. The area of the visibility rule is therefore left as it was, and only the answer about the pilots that run is dropped - the rule has to keep being asked.

Параметры

4
Имя Тип По умолчанию Флаги
$templateId int —
—
$actorId int —
—
$expectedPilotId int —
—
$confirmedDraftOverwrite bool false
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Public/Service/WorkflowTemplate/PilotPublicationService.php
Расположение метода в файле
Строки 336–409

Исходный код

PHP