removed getActiveStates and use it in getOrderedWorkflowStates and getStates