• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/integration/bizproc/automation/target/item.php
  • Класс: BitrixRpaIntegrationBizprocAutomationTargetItem
  • Вызов: Item::getDocumentStatusList
public function getDocumentStatusList($categoryId = 0): array
{
	$list = [];
	$typeId = $this->getTypeId();
	$type = TypeTable::getById($typeId)->fetchObject();

	if ($type)
	{
		foreach($type->getStages() as $stage)
		{
			$list[$stage->getId()] = [
				'NAME'  => $stage->getName(),
				'COLOR' => $stage->getColor(),
			];
		}
	}

	return $list;
}