• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/bizproc/automation/target/task.php
  • Класс: BitrixTasksIntegrationBizprocAutomationTargetTask
  • Вызов: Task::getEntityStatuses
public function getEntityStatuses()
{
	if ($this->entityStages === null)
	{
		$entity = $this->getEntity();
		$categoryId = isset($entity['GROUP_ID']) ? (int)$entity['GROUP_ID'] : 0;

		//I can`t believe it`s true...
		TasksKanbanStagesTable::setWorkMode(TasksKanbanStagesTable::WORK_MODE_GROUP);
		$stages = TasksKanbanStagesTable::getStages($categoryId);

		$this->entityStages = array_keys($stages);
	}

	return $this->entityStages;
}