CBPWorkflow::processQueuedEvent

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPWorkflow
  4. processQueuedEvent
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/workflow.php
  • Класс: CBPWorkflow
  • Вызов: CBPWorkflow::processQueuedEvent
private function processQueuedEvent($eventName, $eventParameters = [])
{
	if (!array_key_exists($eventName, $this->rootActivity->arEventsMap))
		return;

	foreach ($this->rootActivity->arEventsMap[$eventName] as $eventHandler)
	{
		if (!empty($eventParameters['DebugEvent']) && $eventHandler instanceof IBPActivityDebugEventListener)
		{
			$eventHandler->onDebugEvent($eventParameters);

			continue;
		}

		if ($eventHandler instanceof IBPActivityExternalEventListener)
		{
			$eventHandler->OnExternalEvent($eventParameters);
		}
	}
}

Добавить комментарий