• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Operation/Update.php
  • Класс: Bitrix\Crm\Service\Operation\Update
  • Вызов: Update::runAutomation
protected function runAutomation(): Result
{
	$result = parent::runAutomation();

	if($result->isSuccess())
	{
		/** @var \Bitrix\Crm\Automation\Starter $starter */
		$starter = $result->getData()['starter'];

		return $starter->runOnUpdate(
			Helper::prepareCompatibleData(
				$this->itemBeforeSave->getEntityTypeId(),
				$this->itemBeforeSave->getCompatibleData(Values::CURRENT)
			),
			Helper::prepareCompatibleData(
				$this->itemBeforeSave->getEntityTypeId(),
				$this->itemBeforeSave->getCompatibleData(Values::ACTUAL)
			)
		);
	}

	return $result;
}