get Current Phase
Returns the current phase of the flow. The users may check the type of flow by calling Phase.getPhaseName on the getCurrentPhase and then cast it to appropriate classes.
The table below shows the mapping between the PhaseName and Phase implementations.
PROPOSAL | ProposalPhase |
PLAN | PlanPhase |
ORDER | OrderPhase |
PERFORM | PerformPhase |