CBPWorkflowStatus::out

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPWorkflowStatus
  4. out
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/constants.php
  • Класс: CBPWorkflowStatus
  • Вызов: CBPWorkflowStatus::out
static function out($v)
{
	$result = "";

	switch ($v)
	{
		case self::Created:
			$result = "Created";
			break;
		case self::Running:
			$result = "Running";
			break;
		case self::Completed:
			$result = "Completed";
			break;
		case self::Suspended:
			$result = "Suspended";
			break;
		case self::Terminated:
			$result = "Terminated";
			break;
		default:
			throw new Exception("UnknownWorkflowStatus");
	}

	return $result;
}

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