CBPWorkflowTemplateLoader::checkTemplateActivities: Bitrix method

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

    
public static function checkTemplateActivities(array $template)
    {
        foreach (
$template as $activity)
        {
            if (!
CBPActivity::IncludeActivityFile($activity['Type']))
                return 
false;
            if (!empty(
$activity['Children']))
            {
                
$childResult = static::checkTemplateActivities($activity['Children']);
                if (!
$childResult)
                    return 
false;
            }
        }

        return 
true;
    }