Package org.springframework.batch.core.job.flow

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


  @Test
  public void testDecisionFlowWithExceptionInDecider() throws Throwable {

    SimpleFlow flow = new JsrFlow("job");
    JobExecutionDecider decider = new JobExecutionDecider() {
      @Override
      public FlowExecutionStatus decide(JobExecution jobExecution, StepExecution stepExecution) {
        assertNotNull(stepExecution);
        throw new RuntimeException("Foo");
      }
View Full Code Here


    assertEquals(2, execution.getStepExecutions().size());
  }

  @Test
  public void testBuildDecision() throws Exception {
    JobExecutionDecider decider = new JobExecutionDecider() {
      private int count = 0;
      @Override
      public FlowExecutionStatus decide(JobExecution jobExecution, StepExecution stepExecution) {
        count++;
        return count<2 ? new FlowExecutionStatus("ONGOING") : FlowExecutionStatus.COMPLETED;
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.job.flow.JobExecutionDecider

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.