Метод reserveCapture
Сигнатура метода
private function reserveCapture(CBPActivity $rootActivity, int $templateId, DateTime $versionKey, int $now): bool
Возвращает:
bool
Описание
Atomically reserves the right to capture: the version of the stored snapshot and the throttle interval are checked by the write itself, so out of several completions of one template inside the interval only one goes on to walk the tree. WORKFLOW_ID is set along with the stamp on purpose - MySQL counts changed rows and not matched ones, so with throttling off two completions within the same second would otherwise both look like a lost reservation.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$rootActivity
|
CBPActivity
|
—
|
—
|
$templateId
|
int
|
—
|
—
|
$versionKey
|
DateTime
|
—
|
—
|
$now
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Service/LastValues/CaptureService.php
Расположение метода в файле
Строки
165–209