Examples of FlowExecutor


Examples of org.springframework.batch.core.job.flow.FlowExecutor

        Mockito.when(jobExecution.getJobInstance()).thenReturn(jobInstance);
        return jobExecution;
    }

    protected FlowExecutor createFlowExecutor(final StepExecution stepExecution) {
        return new FlowExecutor() {
            public String executeStep(Step step)
                    throws JobInterruptedException, JobRestartException, StartLimitExceededException {
                step.execute(getStepExecution());
                return "done";
            }
View Full Code Here

Examples of org.springframework.batch.core.job.flow.FlowExecutor

        super();
    }

    @Test
    public void testStart() throws FlowExecutionException {
        FlowExecutor flowExecutor = createFlowExecutor("testStartJob", "testStartStep");
        Flow flow = new Flow() {
            public String getName() {
                return "testStart";
            }
View Full Code Here

Examples of org.springframework.batch.core.job.flow.FlowExecutor

        assertOperationPath(op, flowExecutor);
    }

    @Test
    public void testResume() throws FlowExecutionException {
        FlowExecutor flowExecutor = createFlowExecutor("testResumeJob", "testResumeStep");
        Flow flow = new Flow() {
            public String getName() {
                return "testResume";
            }
View Full Code Here

Examples of org.springframework.batch.core.job.flow.FlowExecutor

    @Test
    public void testExecuteStep()
            throws JobInterruptedException, JobRestartException, StartLimitExceededException {
        Step step = createTestStep("testExecuteStep");
        String stepName = step.getName();
        FlowExecutor executor = createFlowExecutor("testExecuteJob", stepName);

        executor.executeStep(step);

        Operation op = assertOperationDetails(getFirstEntered(), "executeStep", step.getName());
        assertOperationPath(op, null, stepName);
    }
View Full Code Here

Examples of org.springframework.batch.core.job.flow.FlowExecutor

    }

    @Test
    public void testAbandonStepExecution() {
        StepExecution stepExec = createStepExecution("testAbandonJobExecution", "testAbandonStepExecution");
        FlowExecutor executor = createFlowExecutor(stepExec);
        executor.abandonStepExecution();

        Operation op = assertOperationDetails(getFirstEntered(), "abandonStepExecution", stepExec.getStepName());
        assertOperationPath(op, stepExec);
    }
View Full Code Here

Examples of org.springframework.batch.core.job.flow.FlowExecutor

        assertOperationPath(op, stepExec);
    }

    @Test
    public void testAbandonNoCurrentStepExecution() {
        FlowExecutor executor = createFlowExecutor(null);
        executor.abandonStepExecution();
        assertOperationDetails(getFirstEntered(), "abandonStepExecution", SpringBatchDefinitions.UNKNOWN_VALUE);
    }
View Full Code Here

Examples of org.springframework.webflow.executor.FlowExecutor

    };
    factoryBean.setFlowExecutionListenerLoader(new StaticFlowExecutionListenerLoader(listener));
    factoryBean.setMaxFlowExecutionSnapshots(2);
    factoryBean.setMaxFlowExecutions(1);
    factoryBean.afterPropertiesSet();
    FlowExecutor executor = (FlowExecutor) factoryBean.getObject();
    MockExternalContext context = new MockExternalContext();

    MockExternalContext context2 = new MockExternalContext();
  }
View Full Code Here

Examples of org.springframework.webflow.executor.FlowExecutor

  public void setUp() {
    context = new ClassPathXmlApplicationContext("org/springframework/webflow/config/flow-executor.xml");
  }

  public void testConfigOk() {
    FlowExecutor executor = (FlowExecutor) context.getBean("flowExecutor", FlowExecutor.class);
    executor.launchExecution("flow", null, new MockExternalContext());
    FlowExecutor executor2 = (FlowExecutor) context.getBean("flowExecutorSimpleRepo", FlowExecutor.class);
    executor2.launchExecution("flow", null, new MockExternalContext());
  }
View Full Code Here

Examples of org.springframework.webflow.executor.FlowExecutor

  protected abstract ApplicationContext initApplicationContext();


  public void testConfigOk() {
    FlowExecutor executor = context.getBean("flowExecutor", FlowExecutor.class);
    executor.launchExecution("flow", null, new MockExternalContext());
    FlowExecutor executor2 = context.getBean("flowExecutorSimpleRepo", FlowExecutor.class);
    executor2.launchExecution("flow", null, new MockExternalContext());
  }
View Full Code Here

Examples of org.tubo.resource.flow.FlowExecutor

        // return
        return manager;
    }

    public FlowExecutor getFlowExecutor() throws TuboException {
        FlowExecutor manager = null;
        try {
            //
            // get FlowExecutor via Spring
            manager = (FlowExecutor)beanFactory.getBean(SPRING_FLOW_EXECUTOR_BEAN_ID);
        } catch (BeansException e) {
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.