Package org.springframework.webflow.engine

Examples of org.springframework.webflow.engine.ActionState


    }
   
    private Flow createSimpleFlow(final String id) {
        // Create a flat flow with an action and single view state
        final Flow flow = new Flow(id);
        final ActionState state1 = new ActionState(flow, "state1-action");
        final ViewState state2 = new ViewState(flow, "state2-view", new MockViewFactory("view"));
        new EndState(flow, "state3-end");
        state1.getActionList().add(new MockAction("state1-result"));
        state1.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("state2-view")));
        state2.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("state3-end")));
        return flow;
    }
View Full Code Here


   
    private Flow createFlowWithSubflow(final String parentId, final String childId) {
        // Create a flow containing a subflow followed by a view state
        final Flow parent = new Flow(parentId);
        final Flow child = createSimpleFlow(childId);
        final ActionState state1 = new ActionState(parent, "state1-action");
        final SubflowState state2 = new SubflowState(parent, "state2-subflow", new StaticExpression(child));
        final ViewState state3 = new ViewState(parent, "state3-view", new MockViewFactory("parentview"));
        new EndState(parent, "state4-end");
        state1.getActionList().add(new MockAction("state1-result"));
        state1.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("state2-subflow")));
        state2.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("state3-view")));
        state3.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("state4-end")));
        return parent;
    }
View Full Code Here

   * @return the fully initialized action state instance
   */
  public State createActionState(String id, Flow flow, Action[] entryActions, Action[] actions,
      Transition[] transitions, FlowExecutionExceptionHandler[] exceptionHandlers, Action[] exitActions,
      AttributeMap attributes) {
    ActionState actionState = new ActionState(flow, id);
    actionState.getActionList().addAll(actions);
    configureCommonProperties(actionState, entryActions, transitions, exceptionHandlers, exitActions, attributes);
    return actionState;
  }
View Full Code Here

   * @return the fully initialized action state instance
   */
  public State createActionState(String id, Flow flow, Action[] entryActions, Action[] actions,
      Transition[] transitions, FlowExecutionExceptionHandler[] exceptionHandlers, Action[] exitActions,
      AttributeMap<?> attributes) {
    ActionState actionState = new ActionState(flow, id);
    actionState.getActionList().addAll(actions);
    configureCommonProperties(actionState, entryActions, transitions, exceptionHandlers, exitActions, attributes);
    return actionState;
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.ActionState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.