• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/scenario/typeautomation.php
  • Класс: BitrixRpaScenarioTypeAutomation
  • Вызов: TypeAutomation::installRobot
protected function installRobot(array $description): Result
{
	$result = new Result();

	$firstStage = $this->type->getFirstStage()->getId();
	$documentType = IntegrationBizprocDocumentItem::makeComplexType($this->type->getId());

	$template = new BizprocAutomationEngineTemplate($documentType, $firstStage);
	return $template->save($description, 1); // USER_ID = 1, there is no other way to identify system import
}