Next next = (Next) e;
if (matches(exitStatus, next.getOn())) {
return next.getTo();
}
} else if (e instanceof End) {
End end = (End) e;
if (matches(exitStatus, end.getOn())) {
setOuterContextStatus(batchContext.getOuterContexts(), BatchStatus.COMPLETED,
exitStatus, end.getExitStatus(), partOfDecision);
return null;
}
} else if (e instanceof Fail) {
Fail fail = (Fail) e;
if (matches(exitStatus, fail.getOn())) {