• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/automation/target/basetarget.php
  • Класс: BitrixBizprocAutomationTargetBaseTarget
  • Вызов: BaseTarget::getTriggers
public function getTriggers(array $statuses)
{
	$result = [];
	$documentType = $this->getDocumentType();

	$iterator = TriggerTable::getList(array(
		'filter' => array(
			'=MODULE_ID' => $documentType[0],
			'=ENTITY' => $documentType[1],
			'=DOCUMENT_TYPE' => $documentType[2],
			'@DOCUMENT_STATUS' => $statuses
		),
		'cache' => [
			'ttl' => self::CACHE_TTL
		]
	));

	while ($row = $iterator->fetch())
	{
		$row['DOCUMENT_TYPE'] = $documentType;
		$result[] = $row;
	}

	return $result;
}