• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/bizproc/automation/trigger/webhook.php
  • Класс: BitrixTasksIntegrationBizprocAutomationTriggerWebHook
  • Вызов: WebHook::checkApplyRules
public function checkApplyRules(array $trigger)
{
	if (!parent::checkApplyRules($trigger))
	{
		return false;
	}

	if (
		is_array($trigger['APPLY_RULES'])
		&& !empty($trigger['APPLY_RULES']['code'])
	)
	{
		return (string)$trigger['APPLY_RULES']['code'] === (string)$this->getInputData('code');
	}
	return true;
}