WorkflowInstanceTable::getIdsByDocument: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Workflow\Entity\WorkflowInstanceTable :: getIdsByDocument()
//  /dist/bitrix/modules/bizproc/lib/workflow/entity/workflowinstance.php:90

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

        return 
array_column($rows'ID');
    }