CBPWorkflowTemplateLoader :: getTemplateUserId: Bitrix method

      
<?php 
//  CBPWorkflowTemplateLoader :: getTemplateUserId()
//  /dist/bitrix/modules/bizproc/classes/general/workflowtemplateloader.php:581

    
public static function getTemplateUserId($workflowTemplateId)
    {
        
$userId 0;
        
$dbTemplatesList self::GetList(
            [],
            [
'ID' => (int) $workflowTemplateId], false,false, ['USER_ID']
        );
        if (
$row $dbTemplatesList->Fetch())
        {
            
$userId = (int) $row['USER_ID'];
        }

        return 
$userId;
    }