示例#1
0
 /**
  * Action to abandon step by step flow and go directly to a particular step. The flow dictates
  * that the step to go to must exist within the flow and the step must already have been visited.
  *
  * @return the Struts forward of the step to go to.
  */
 @Action("enterFlowStep")
 public String enterFlowStep() {
   checkFlowExists();
   if (flowStepToGoTo != null) {
     flow.gotoStep(flowStepToGoTo);
   } else {
     throw new IllegalStateException("Must Set a flowStepToGoTo value before calling!");
   }
   return flowStepToGoTo.name();
 }
示例#2
0
 /**
  * Controller action for going to the previous action in the flow.
  *
  * @return the struts forward of the previous action in the flow.
  */
 @Action("enterPreviousStep")
 public String enterPreviousStep() {
   checkFlowExists();
   RegistrationFlowStep previousStep = flow.stepBackward();
   return previousStep.name();
 }
示例#3
0
 /**
  * Controller action for saving and returning to the current action in the flow.
  *
  * @return the struts forward of the current action in the flow.
  */
 @Action("enterCurrentStep")
 public String enterCurrentStep() {
   checkFlowExists();
   return flow.getCurrentStep().name();
 }
示例#4
0
 /**
  * Controller action for going to the next action in the flow.
  *
  * @return the struts forward of the next action in the flow.
  */
 @Action("enterNextStep")
 public String enterNextStep() {
   checkFlowExists();
   RegistrationFlowStep nextStep = flow.stepForward();
   return nextStep.name();
 }