Метод ensureCommonRevision

public

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

public function ensureCommonRevision(int $templateId): string

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

Описание

The stored revision, computed from the live scheme on the first call for a template written before the feature existed. A stored value is returned as is - an empty string included, because it is the answer "no common version", not a reason to hash the activity tree again. Safe without a lock: the fingerprint is deterministic, so competing callers store the same value. On failure returns an empty revision instead of throwing - the process start it serves must go on.

Параметры

1
Имя Тип По умолчанию Флаги
$templateId int —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Service/Pilot/CommonRevisionWriter.php
Расположение метода в файле
Строки 134–151

Исходный код

PHP