CBPWorkflow::getActivityByName

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPWorkflow
  4. getActivityByName
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/workflow.php
  • Класс: CBPWorkflow
  • Вызов: CBPWorkflow::getActivityByName
public function getActivityByName($activityName)
{
	if ($activityName == '')
	{
		throw new Exception('activityName');
	}

	$activity = null;

	$this->fillNameActivityMap();

	if (array_key_exists($activityName, $this->activitiesNamesMap))
	{
		$activity = $this->activitiesNamesMap[$activityName];
	}

	return $activity;
}

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