• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/starter.php
  • Класс: Bitrix\Crm\Automation\Starter
  • Вызов: Starter::__construct
public function __construct(int $entityTypeId, int $entityId)
{
	$this->entityTypeId = $entityTypeId;
	$this->entityId = $entityId;

	if ($entityTypeId === \CCrmOwnerType::Lead || $entityTypeId === \CCrmOwnerType::Quote)
	{
		$this->statusFieldKey = 'STATUS_ID';
	}

	if ($entityTypeId === \CCrmOwnerType::Order)
	{
		$this->statusFieldKey = 'STATUS_ID';
		$this->responsibleFieldKey = 'RESPONSIBLE_ID';
	}
}