setOuterContextStatus(batchContext.getOuterContexts(), BatchStatus.FAILED,
exitStatus, fail.getExitStatus(), partOfDecision);
return null;
}
} else { //stop
final Stop stop = (Stop) e;
if (matches(exitStatus, stop.getOn())) {
setOuterContextStatus(batchContext.getOuterContexts(), BatchStatus.STOPPED,
exitStatus, stop.getExitStatus(), partOfDecision);
final String restartPoint = stop.getRestart(); //job-level step, flow or split to restart
if (restartPoint != null) {
batchContext.getJobContext().getJobExecution().setRestartPosition(restartPoint);
}
return null;
}