Метод upgrade
Сигнатура метода
public function upgrade(int $launchedId, ?array $providedConstantValues = null): AgentUpgradeResult
Возвращает:
AgentUpgradeResult
Описание
The upgrade master is always shown for review before applying (ADR §10.3): the first call (no submitted values) returns NeedsReview carrying the current constant values to pre-fill and the reference template id whose setup blocks describe the editable constants. The upgrade is applied (Updated) only on a subsequent call that submits the values, and only after server-side re-validation confirms no required constant is left unset and every submitted value is valid for its reference field definition — otherwise NeedsReview is returned again with the offending codes (the UI is not the source of truth). Re-validation runs before the transaction, so a rejected submit leaves the previous version and constants untouched.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$launchedId
|
int
|
—
|
—
|
$providedConstantValues
|
?array
|
null
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/Service/AiAgentGrid/Upgrade/AgentUpgradeService.php