CBPWorkflowTemplateLoader :: isConstantsTuned: Bitrix method

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

    
public static function isConstantsTuned($workflowTemplateId)
    {
        
$result true;
        
$constants self::getTemplateConstants($workflowTemplateId);
        if (!empty(
$constants) && is_array($constants))
        {
            foreach (
$constants as $key => $const)
            {
                
$value = isset($const['Default']) ? $const['Default'] : null;
                if (
CBPHelper::getBool($const['Required']) && CBPHelper::isEmptyValue($value))
                {
                    
$result false;
                    break;
                }
            }
        }
        return 
$result;
    }