• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/engine/robot.php
  • Класс: Bitrix\Crm\Automation\Engine\Robot
  • Вызов: Robot::toArray
public function toArray()
{
	$activity = $this->bizprocActivity;
	unset($activity['Children']); //Robot activities has no Children
	$delayInterval = $this->getDelayInterval();
	if ($delayInterval)
	{
		$activity['Delay'] = $delayInterval->toArray();
		$activity['DelayName'] = $this->getDelayName();
	}
	if ($this->isExecuteAfterPrevious())
		$activity['ExecuteAfterPrevious'] = 1;

	$condition = $this->getCondition();
	if ($condition)
	{
		$activity['Condition'] = $condition->toArray();
	}

	return $activity;
}