Examples of FlowExecutionImpl


Examples of org.jberet.runtime.FlowExecutionImpl

    public FlowContextImpl(final Flow flow, final AbstractContext[] outerContexts) {
        super(flow.getId(), outerContexts);
        this.flow = flow;
        this.classLoader = getJobContext().getClassLoader();
        this.flowExecution = new FlowExecutionImpl(id);
        this.flowExecution.setBatchStatus(BatchStatus.STARTING);
    }
View Full Code Here

Examples of org.jberet.runtime.FlowExecutionImpl

            }
            latch.await();

            //check FlowResults from each flow
            final List<FlowExecutionImpl> fes = batchContext.getFlowExecutions();
            FlowExecutionImpl failedFlow = null;
            FlowExecutionImpl stoppedFlow = null;
            FlowExecutionImpl endedFlow = null;
            for (int i = 0; i < fes.size(); i++) {
                final FlowExecutionImpl flowExecution = fes.get(i);
                if (flowExecution.getBatchStatus() == BatchStatus.FAILED) {
                    failedFlow = flowExecution;
                    break;
                } else if (flowExecution.getBatchStatus() == BatchStatus.STOPPED) {
                    stoppedFlow = flowExecution;
                } else if (flowExecution.getBatchStatus() == BatchStatus.COMPLETED) {
                    if (flowExecution.isEnded()) {
                        endedFlow = flowExecution;
                    }
                }
            }
View Full Code Here

Examples of org.jberet.runtime.FlowExecutionImpl

    public FlowContextImpl(Flow flow, AbstractContext[] outerContexts) {
        super(flow.getId(), outerContexts);
        this.flow = flow;
        this.classLoader = getJobContext().getClassLoader();
        this.flowExecution = new FlowExecutionImpl(id);
        this.flowExecution.setBatchStatus(BatchStatus.STARTING);
    }
View Full Code Here

Examples of org.springframework.webflow.engine.impl.FlowExecutionImpl

    executionFactory.setExecutionKeyFactory(executionKeyFactory);
    factory = new SerializedFlowExecutionSnapshotFactory(executionFactory, locator);
  }

  public void testCreateSnapshot() {
    FlowExecutionImpl flowExecution = (FlowExecutionImpl) executionFactory.createFlowExecution(flow);
    flowExecution.start(null, new MockExternalContext());
    flowExecution.getActiveSession().getScope().put("foo", "bar");
    FlowExecutionSnapshot snapshot = factory.createSnapshot(flowExecution);
    FlowExecutionImpl flowExecution2 = (FlowExecutionImpl) factory.restoreExecution(snapshot, "myFlow", null,
        flowExecution.getConversationScope(), executionKeyFactory);
    assertNotSame(flowExecution, flowExecution2);
    assertEquals(flowExecution.getDefinition().getId(), flowExecution2.getDefinition().getId());
    assertEquals(flowExecution.getActiveSession().getScope().get("foo"), flowExecution2.getActiveSession()
        .getScope().get("foo"));
    assertEquals(flowExecution.getActiveSession().getState().getId(), flowExecution2.getActiveSession().getState()
        .getId());
    assertNull(flowExecution2.getKey());
    assertSame(flowExecution.getConversationScope(), flowExecution2.getConversationScope());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.