Package org.jberet.job

Examples of org.jberet.job.Next


    private void resolveTransitionElements(List<?> transitions) {
        String oldVal, newVal;
        for (Object e : transitions) {
            if (e instanceof Next) {
                Next next = (Next) e;
                oldVal = next.getTo();
                newVal = resolve(oldVal);
                if (!oldVal.equals(newVal)) {
                    next.setTo(newVal);
                }
                oldVal = next.getOn();
                newVal = resolve(oldVal);
                if (!oldVal.equals(newVal)) {
                    next.setOn(newVal);
                }
            } else if (e instanceof Fail) {
                Fail fail = (Fail) e;
                oldVal = fail.getOn();
                newVal = resolve(oldVal);
View Full Code Here


     */
    protected String resolveTransitionElements(List<?> transitionElements, String nextAttr, boolean partOfDecision) {
        String exitStatus = batchContext.getExitStatus();
        for (Object e : transitionElements) {  //end, fail. next, stop
            if (e instanceof Next) {
                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,
View Full Code Here

TOP

Related Classes of org.jberet.job.Next

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.