CBPRuntime::stopRuntime

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPRuntime
  4. stopRuntime
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/runtime.php
  • Класс: CBPRuntime
  • Вызов: CBPRuntime::stopRuntime
public function stopRuntime()
{
	if (!$this->isStarted)
	{
		return;
	}

	/** @var CBPWorkflow $workflow */
	foreach ($this->workflows as $key => $workflow)
	{
		$workflow->OnRuntimeStopped();
	}

	foreach ($this->services as $serviceId => $service)
	{
		$service->stop();
	}

	$this->isStarted = false;
}

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