Package org.springframework.webflow.engine

Examples of org.springframework.webflow.engine.EndState


import org.springframework.webflow.engine.builder.support.AbstractFlowBuilder;

public class FooFlowBuilder extends AbstractFlowBuilder {

  public void buildStates() throws FlowBuilderException {
    new EndState(getFlow(), "finish");
  }
View Full Code Here


      public FlowDefinition getFlowDefinition(String id) throws NoSuchFlowDefinitionException,
          FlowDefinitionConstructionException {
        Flow flow = new Flow(id);
        ViewState view = new ViewState(flow, "view", new StubViewFactory());
        view.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("end")));
        new EndState(flow, "end");
        return flow;
      }
    });
    factoryBean.afterPropertiesSet();
    factoryBean.getObject();
View Full Code Here

      public FlowDefinition getFlowDefinition(String id) throws NoSuchFlowDefinitionException,
          FlowDefinitionConstructionException {
        Flow flow = new Flow(id);
        ViewState view = new ViewState(flow, "view", new StubViewFactory());
        view.getTransitionSet().add(new Transition(new DefaultTargetStateResolver("end")));
        new EndState(flow, "end");
        return flow;
      }
    });
    Set<FlowElementAttribute> attributes = new HashSet<FlowElementAttribute>();
    attributes.add(new FlowElementAttribute("foo", "bar", null));
View Full Code Here

   * null
   * @return the fully initialized subflow state instance
   */
  public State createEndState(String id, Flow flow, Action[] entryActions, Action finalResponseAction,
      Mapper outputMapper, FlowExecutionExceptionHandler[] exceptionHandlers, AttributeMap<?> attributes) {
    EndState endState = new EndState(flow, id);
    if (finalResponseAction != null) {
      endState.setFinalResponseAction(finalResponseAction);
    }
    if (outputMapper != null) {
      endState.setOutputMapper(outputMapper);
    }
    configureCommonProperties(endState, entryActions, exceptionHandlers, attributes);
    return endState;
  }
View Full Code Here

              // assert that 1L was passed in as input
              return null;
          }
      });
      // immediately return the bookingConfirmed outcome so the caller can respond
      new EndState(mockBookingFlow, "endOrderOk");
      return mockBookingFlow;
  }
View Full Code Here

TOP

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

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.