• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/bizproc/automation/rest.php
  • Класс: BitrixTasksIntegrationBizprocAutomationRest
  • Вызов: Rest::executeWebHookTrigger
static function executeWebHookTrigger(array $params)
{
	$documentType = array_shift($params);
	$taskId = array_shift($params);
	$code = array_shift($params);

	if ($documentType && $taskId)
	{
		$data = ['code' => $code];
		$result = TriggerWebHook::execute($documentType, $taskId, $data);
		if ($result->isSuccess())
		{
			return [$result->getData()];
		}
	}

	return [false];
}