Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- getCompositeListener().beforeStep(stepExecution);
- open(stepExecution.getExecutionContext());
- afterOpen(stepExecution.getExecutionContext());
- try {
- doExecute(stepExecution);
- }
- catch (RepeatException e) {
- throw e.getCause();
- }
- beforeClose(stepExecution.getExecutionContext());
- exitStatus = ExitStatus.COMPLETED.and(stepExecution.getExitStatus());
- // Check if someone is trying to stop us
- if (stepExecution.isTerminateOnly()) {
- throw new JobInterruptedException("JobExecution interrupted.");
- }
- // Need to upgrade here not set, in case the execution was stopped
- stepExecution.upgradeStatus(BatchStatus.COMPLETED);
- logger.debug("Step execution success: id=" + stepExecution.getId());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement