Skip to content

Instantly share code, notes, and snippets.

@Pum-purum
Last active March 5, 2019 08:18
Show Gist options
  • Save Pum-purum/18361ca55d607752ad080d723ee2ad00 to your computer and use it in GitHub Desktop.
Save Pum-purum/18361ca55d607752ad080d723ee2ad00 to your computer and use it in GitHub Desktop.
PHP-код в активити бизнес-процесса
// получить текущий бизнес-процесс
$rootActivity = $this->GetRootActivity();
// получить значение переменной бизнес-процесса {=Variable:kurs_usd}
$kursUSD = $rootActivity->GetVariable("kurs_usd");
$rootActivity->GetConstant($fieldName);
// установка значения параметра бизнес-процесса {=Template:integrator_USD}
$rootActivity->integrator_USD = $integrator;
$rootActivity->SetVariable("LOG", $arLog);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment