Examples of JobExecutionDecider


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

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

    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
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.