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

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

	return $iterator->fetchCollection()->getAll();
}