• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/schedulerservice.php
  • Класс: CBPSchedulerService
  • Вызов: CBPSchedulerService::sendEventToWorkflow
static function sendEventToWorkflow($event, $counter = 0)
{
	try
	{
		CBPRuntime::SendExternalEvent($event['WORKFLOW_ID'], $event['HANDLER'], $event['EVENT_PARAMETERS']);
	}
	catch (Exception $e)
	{
		if ($e->getCode() === CBPRuntime::EXCEPTION_CODE_INSTANCE_NOT_FOUND)
		{
			SchedulerEventTable::delete($event['ID']);
		}
		elseif ($e->getCode() === CBPRuntime::EXCEPTION_CODE_INSTANCE_LOCKED)
		{
			self::addEventRepeatAgent($event, $counter);
		}
	}
}