setOuterContextStatus(batchContext.getOuterContexts(), BatchStatus.COMPLETED,
exitStatus, end.getExitStatus(), partOfDecision);
return null;
}
} else if (e instanceof Fail) {
final Fail fail = (Fail) e;
if (matches(exitStatus, fail.getOn())) {
setOuterContextStatus(batchContext.getOuterContexts(), BatchStatus.FAILED,
exitStatus, fail.getExitStatus(), partOfDecision);
return null;
}
} else { //stop
final Stop stop = (Stop) e;
if (matches(exitStatus, stop.getOn())) {