CBPAllStateService::getIdsByDocument: Bitrix method

      
<?php 
//  CBPAllStateService :: getIdsByDocument()
//  /dist/bitrix/modules/bizproc/classes/general/stateservice.php:271

    
public static function getIdsByDocument(array $documentId)
    {
        
$documentId = \CBPHelper::ParseDocumentId($documentId);
        
$rows WorkflowStateTable::getList([
            
'select' => ['ID'],
            
'filter' => [
                
'=MODULE_ID' => $documentId[0],
                
'=ENTITY' => $documentId[1],
                
'=DOCUMENT_ID' => $documentId[2]
            ]
        ])->
fetchAll();

        return 
array_column($rows'ID');
    }