• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/model/item.php
  • Класс: BitrixRpaModelItem
  • Вызов: Item::getPreviousStage
public function getPreviousStage(): ?Stage
{
	$stage = null;
	$type = $this->getType();
	if($type && $this->getPreviousStageId() > 0)
	{
		$stage = $type->getStages()->getByPrimary($this->getPreviousStageId());
	}

	return $stage;
}