Examples of ExitableChain


Examples of org.apache.airavata.core.gfac.extension.ExitableChain

         */
        if (list == null || list.length == 0) {
            return new NullChain();
        }

        ExitableChain currentPoint = list[0];
        for (int i = 1; i < list.length; i++) {
            currentPoint = currentPoint.setNext(list[i]);
        }
        return currentPoint;
    }
View Full Code Here

Examples of org.ogce.gfac.extension.ExitableChain

    /*
     * Validation check and return doing-nothing chain object
     */
    if (list == null || list.length == 0) {
      return new ExitableChain() {
        @Override
        protected boolean execute(InvocationContext context) {
          return true;
        }
      };
    }

    ExitableChain currentPoint = list[0];
    for (int i = 1; i < list.length; i++) {
      currentPoint = currentPoint.setNext(list[i]);
    }
    return currentPoint;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.