• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/bizproc/automation/rest.php
  • Класс: BitrixTasksIntegrationBizprocAutomationRest
  • Вызов: Rest::validateTriggerCode
static function validateTriggerCode($code)
{
	if (empty($code))
	{
		throw new RestException('Empty trigger code!');
	}
	if (!preg_match('#^[a-z0-9.-_]+$#i', $code))
	{
		throw new RestException('Wrong trigger code!');
	}
}