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

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


    builder.start(new StepSupport("step") {
      @Override
      public void execute(StepExecution stepExecution) throws JobInterruptedException,
          UnexpectedJobExecutionException {
      }
    }).end().start(new JobFlowExecutor(jobRepository, new SimpleStepHandler(jobRepository), execution));
  }
View Full Code Here


   * @see AbstractJob#doExecute(JobExecution)
   */
  @Override
  protected void doExecute(final JobExecution execution) throws JobExecutionException {
    try {
      JobFlowExecutor executor = new JsrFlowExecutor(getJobRepository(),
          new JsrStepHandler(getJobRepository(), jobExplorer), execution);

      State startState = ((JsrFlow)flow).getStartState();

      validateFirstStep(startState);

      executor.updateJobExecutionStatus(flow.start(executor).getStatus());
    }
    catch (FlowExecutionException e) {
      if (e.getCause() instanceof JobExecutionException) {
        throw (JobExecutionException) e.getCause();
      }
View Full Code Here

TOP

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

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.