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

	$iterator = WorkflowTemplateTable::getList(array(
		'select' => array('ID', 'DOCUMENT_STATUS'),
		'filter' => array(
			'=MODULE_ID' => $documentType[0],
			'=ENTITY' => $documentType[1],
			'=DOCUMENT_TYPE' => $documentType[2],
			//'=AUTO_EXECUTE' => CBPDocumentEventType::Automation,
			'@DOCUMENT_STATUS' => $statuses
		)
	));

	while ($row = $iterator->fetch())
	{
		$ids[$row['ID']] = $row['DOCUMENT_STATUS'];
	}

	return $ids;
}