Метод applyUpgrade
Сигнатура метода
private function applyUpgrade(int $launchedId, array $newTemplate, array $targetConstants, string $newRevision): AgentUpgradeResult
Возвращает:
AgentUpgradeResult
Описание
Atomic write inside a transaction: replaces the copy logic (TEMPLATE), persists the merged target constants and records the new installed version. Any failure rolls the transaction back, leaving the previous logic, constants and version intact (ERR-005). Reference availability and revision are validated earlier in upgrade(), outside this transaction; they are not re-read here.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$launchedId
|
int
|
—
|
—
|
$newTemplate
|
array
|
—
|
—
|
$targetConstants
|
array
|
—
|
—
|
$newRevision
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Service/AiAgentGrid/Upgrade/AgentUpgradeService.php
Расположение метода в файле
Строки
212–252