ExampleRule::handleRuleMasterFinish

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. ExampleRule
  4. handleRuleMasterFinish
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/queue/rule/rules/examplerule.php
  • Класс: BitrixCalendarCoreQueueRuleRulesExampleRule
  • Вызов: ExampleRule::handleRuleMasterFinish
protected function handleRuleMasterFinish(BitrixMainEvent $event): BitrixMainEventResult
{
	$result = $this->wakeupAgent('Name of agent');
	if ($result->isSuccess())
	{
		$result = new BitrixMainEventResult(BitrixMainEventResult::SUCCESS, []);
	}
	else
	{
		$result = new BitrixMainEventResult(BitrixMainEventResult::ERROR, []);
	}

	return $result;
}

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