Package org.springframework.webflow.engine.builder

Examples of org.springframework.webflow.engine.builder.FlowBuilder


      // expected
    }
  }

  public void testStateExceptionHandlingExceptionInEndState() {
    FlowBuilder builder = new AbstractFlowBuilder() {
      public void buildStates() throws FlowBuilderException {
        State state = new EndState(getFlow(), "end");
        state.getEntryActionList().add(new AbstractAction() {
          protected Event doExecute(RequestContext context) throws Exception {
            throw new NullPointerException("failing");
View Full Code Here


   */
  protected final Flow buildFlow() {
    FlowDefinitionResource resource = getResource(getResourceFactory());
    flowBuilderContext = new MockFlowBuilderContext(resource.getId(), resource.getAttributes());
    configureFlowBuilderContext(flowBuilderContext);
    FlowBuilder builder = createFlowBuilder(resource);
    FlowAssembler assembler = new FlowAssembler(builder, flowBuilderContext);
    return assembler.assembleFlow();
  }
View Full Code Here

      }
    }
  }

  private FlowDefinitionHolder createFlowDefinitionHolder(FlowDefinitionResource flowResource) {
    FlowBuilder builder = createFlowBuilder(flowResource);
    FlowBuilderContext builderContext = new FlowBuilderContextImpl(flowResource.getId(), flowResource
        .getAttributes(), flowRegistry, flowBuilderServices);
    FlowAssembler assembler = new FlowAssembler(builder, builderContext);
    return new DefaultFlowHolder(assembler);
  }
View Full Code Here

  }

  private FlowDefinition buildFlowDefinition(FlowBuilderInfo builderInfo) {
    try {
      Class flowBuilderClass = loadClass(builderInfo.getClassName());
      FlowBuilder builder = (FlowBuilder) flowBuilderClass.newInstance();
      AttributeMap flowAttributes = getFlowAttributes(builderInfo.getAttributes());
      FlowBuilderContext builderContext = new FlowBuilderContextImpl(builderInfo.getId(), flowAttributes,
          flowRegistry, flowBuilderServices);
      FlowAssembler assembler = new FlowAssembler(builder, builderContext);
      return assembler.assembleFlow();
View Full Code Here

      // expected
    }
  }

  public void testStateExceptionHandlingExceptionInEndState() {
    FlowBuilder builder = new AbstractFlowBuilder() {
      public void buildStates() throws FlowBuilderException {
        State state = new EndState(getFlow(), "end");
        state.getEntryActionList().add(new AbstractAction() {
          protected Event doExecute(RequestContext context) throws Exception {
            throw new NullPointerException("failing");
View Full Code Here

   */
  protected final Flow buildFlow() {
    FlowDefinitionResource resource = getResource(getResourceFactory());
    flowBuilderContext = new MockFlowBuilderContext(resource.getId(), resource.getAttributes());
    configureFlowBuilderContext(flowBuilderContext);
    FlowBuilder builder = createFlowBuilder(resource);
    FlowAssembler assembler = new FlowAssembler(builder, flowBuilderContext);
    return assembler.assembleFlow();
  }
View Full Code Here

      }
    }
  }

  private FlowDefinitionHolder createFlowDefinitionHolder(FlowDefinitionResource flowResource) {
    FlowBuilder builder = createFlowBuilder(flowResource);
    FlowBuilderContext builderContext = new FlowBuilderContextImpl(flowResource.getId(),
        flowResource.getAttributes(), flowRegistry, flowBuilderServices);
    FlowAssembler assembler = new FlowAssembler(builder, builderContext);
    return new DefaultFlowHolder(assembler);
  }
View Full Code Here

  }

  private FlowDefinition buildFlowDefinition(FlowBuilderInfo builderInfo) {
    try {
      Class<?> flowBuilderClass = loadClass(builderInfo.getClassName());
      FlowBuilder builder = (FlowBuilder) flowBuilderClass.newInstance();
      AttributeMap<Object> flowAttributes = getFlowAttributes(builderInfo.getAttributes());
      FlowBuilderContext builderContext = new FlowBuilderContextImpl(builderInfo.getId(), flowAttributes,
          flowRegistry, flowBuilderServices);
      FlowAssembler assembler = new FlowAssembler(builder, builderContext);
      return assembler.assembleFlow();
View Full Code Here

    } else {
      throw new IllegalArgumentException(resource
          + " is not a supported resource type; supported types are [.xml]");
    }
    FlowModelHolder flowModelHolder = new DefaultFlowModelHolder(flowModelBuilder);
    FlowBuilder flowBuilder = new FlowModelFlowBuilder(flowModelHolder);
    FlowBuilderContext builderContext = new FlowBuilderContextImpl(
        resource.getId(), resource.getAttributes(), flowRegistry, this.flowBuilderServices);
    FlowAssembler assembler = new FlowAssembler(flowBuilder, builderContext);
    DefaultFlowHolder flowHolder = new DefaultFlowHolder(assembler);
View Full Code Here

TOP

Related Classes of org.springframework.webflow.engine.builder.FlowBuilder

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.