• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/workflowtemplateloader.php
  • Класс: CBPWorkflowTemplateLoader
  • Вызов: CBPWorkflowTemplateLoader::isConstantsTuned
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;
}