• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/process.php
  • Класс: BitrixTasksUtilProcess
  • Вызов: Process::getStageIndexByCode
protected function getStageIndexByCode($stageCode)
	{
		$soBack = array_flip($this->stageOrder);

		if(!isset($soBack[$stageCode]))
			throw new FlowException('Stage not found for code: "'.$stageCode.'"');

		return $soBack[$stageCode];
	}