Package org.jberet.runtime

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


            }
            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

    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

TOP

Related Classes of org.jberet.runtime.FlowExecutionImpl

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.