Tracker::getBizprocTrackingEntries: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Tracker :: getBizprocTrackingEntries()
//  /dist/bitrix/modules/bizproc/lib/automation/tracker.php:120

    
private function getBizprocTrackingEntries($statuses)
    {
        
$entries = array();

        
$states $this->getStatusesStates($statuses);

        if (
$states)
        {
            
$trackIterator = \CBPTrackingService::GetList(array('ID' => 'DESC'), array(
                
'@WORKFLOW_ID' => array_keys($states)
            ));

            while (
$row $trackIterator->fetch())
            {
                
$status $states[$row['WORKFLOW_ID']];
                
$entries[$status][] = $row;
            }
        }

        return 
$entries;
    }