Package org.springframework.webflow.execution.repository.snapshot

Examples of org.springframework.webflow.execution.repository.snapshot.SimpleFlowExecutionSnapshotFactory


    public void testSubflow() throws Exception {
        final FlowExecutionImplFactory executionFactory = new FlowExecutionImplFactory();
        final Flow flow = createFlowWithSubflow("parent", "child");
        final CasFlowExecutionKeyFactory keyFactory = new CasFlowExecutionKeyFactory(
            this.mockConversationManager,
            new SimpleFlowExecutionSnapshotFactory(executionFactory, newMockFlowLocator(flow)));
        keyFactory.setAlwaysGenerateNewNextKey(true);
        executionFactory.setExecutionKeyFactory(keyFactory);
        final FlowExecution execution = executionFactory.createFlowExecution(flow);

        execution.start(null, new MockExternalContext());
View Full Code Here


  }

  private FlowExecutionSnapshotFactory createFlowExecutionSnapshotFactory(FlowExecutionFactory executionFactory) {
    if (maxFlowExecutionSnapshots != null && maxFlowExecutionSnapshots.intValue() == 0) {
      maxFlowExecutionSnapshots = new Integer(1);
      return new SimpleFlowExecutionSnapshotFactory(executionFactory, flowDefinitionLocator);
    } else {
      return new SerializedFlowExecutionSnapshotFactory(executionFactory, flowDefinitionLocator);
    }
  }
View Full Code Here

  }

  private FlowExecutionSnapshotFactory createFlowExecutionSnapshotFactory(FlowExecutionFactory executionFactory) {
    if (maxFlowExecutionSnapshots != null && maxFlowExecutionSnapshots == 0) {
      maxFlowExecutionSnapshots = 1;
      return new SimpleFlowExecutionSnapshotFactory(executionFactory, flowDefinitionLocator);
    } else {
      return new SerializedFlowExecutionSnapshotFactory(executionFactory, flowDefinitionLocator);
    }
  }
View Full Code Here

  }

  private FlowExecutionSnapshotFactory getSnapshotFactory(FlowExecutionFactory executionFactory) {
    FlowExecutionSnapshotFactory factory = null;
    if (this.maxFlowExecutionSnapshots != null && this.maxFlowExecutionSnapshots == 0) {
      factory = new SimpleFlowExecutionSnapshotFactory(executionFactory, this.flowRegistry);
    }
    else {
      factory = new SerializedFlowExecutionSnapshotFactory(executionFactory, this.flowRegistry);
    }
    return factory;
View Full Code Here

TOP

Related Classes of org.springframework.webflow.execution.repository.snapshot.SimpleFlowExecutionSnapshotFactory

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.