final Next next = (Next) e;
if (matches(exitStatus, next.getOn())) {
return next.getTo();
}
} else if (e instanceof End) {
final End end = (End) e;
if (matches(exitStatus, end.getOn())) {
final AbstractContext[] outerContexts = batchContext.getOuterContexts();
for (final AbstractContext abc : outerContexts) {
if (abc instanceof FlowContextImpl) {
((FlowContextImpl) abc).getFlowExecution().setEnded(true);
}
}
setOuterContextStatus(outerContexts, BatchStatus.COMPLETED,
exitStatus, end.getExitStatus(), partOfDecision);
return null;
}
} else if (e instanceof Fail) {
final Fail fail = (Fail) e;
if (matches(exitStatus, fail.getOn())) {