Package org.springframework.batch.core.job

Examples of org.springframework.batch.core.job.StepHandler


   */
  @Override
  protected void doExecute(StepExecution stepExecution) throws Exception {
    try {
      stepExecution.getExecutionContext().put(STEP_TYPE_KEY, this.getClass().getName());
      StepHandler stepHandler = new SimpleStepHandler(getJobRepository(), stepExecution.getExecutionContext());
      FlowExecutor executor = new JobFlowExecutor(getJobRepository(), stepHandler, stepExecution.getJobExecution());
      executor.updateJobExecutionStatus(flow.start(executor).getStatus());
      stepExecution.upgradeStatus(executor.getJobExecution().getStatus());
      stepExecution.setExitStatus(executor.getJobExecution().getExitStatus());
    }
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.job.StepHandler

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.