CBPRuntime::checkWorkflowRecursion

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPRuntime
  4. checkWorkflowRecursion
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/runtime.php
  • Класс: CBPRuntime
  • Вызов: CBPRuntime::checkWorkflowRecursion
private function checkWorkflowRecursion($workflowId, $currentTemplateId)
{
	$templates = array($currentTemplateId);
	while (isset($this->workflowChains[$workflowId]))
	{
		$parent = $this->workflowChains[$workflowId];
		if (in_array($parent['templateId'], $templates))
			return true;
		$templates[] = $parent['templateId'];
		$workflowId = $parent['workflowId'];
	}
	return false;
}

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