Workflow::getInitialStage

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Workflow
  4. getInitialStage
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Workflow/Workflow.php
  • Класс: Bitrix\Crm\Workflow\Workflow
  • Вызов: Workflow::getInitialStage
function getInitialStage(): string;

/**
 * Returns current entity identifier
 * @return int
 */
public abstract function getEntityId(): int;

/**
 * Fetches current stage from database
 * @return string
 */
public function getStage(): string
{
	$currentStage = EntityStageTable::getStage($this->getEntityId(), static::getWorkflowCode());
	return $currentStage ?? $this->getInitialStage();
}

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