<?php
// Bitrix\Bizproc\Automation\Target\BaseTarget :: getDocumentStatusList()
// /dist/bitrix/modules/bizproc/lib/automation/target/basetarget.php:57
abstract public function getDocumentStatusList($categoryId = 0);
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
)
));
while ($row = $iterator->fetch())
{
$row['DOCUMENT_TYPE'] = $documentType;
$result[] = $row;
}
return $result;
}