Package com.founder.fix.fixflow.core.scriptlanguage

Examples of com.founder.fix.fixflow.core.scriptlanguage.SelectRulesScript


    String classPath = rule.getClassPath();
    if (StringUtil.isNotEmpty(classPath)) {
      Class<?> classObj = processEngineConfiguration.getRuleClass(rule.getId());
      if (classObj != null) {
        try {
          SelectRulesScript selectRulesScript = (SelectRulesScript) classObj.newInstance();
          returnObjList = (List) selectRulesScript.execute(parameter, sqlCommand, processEngineConfiguration);

        } catch (Exception e) {
          LOG.error("规则: " + statement + " 执行出错,规则执行类为: " + classPath + ",错误信息: " + e.getMessage(), e);

          throw new FixFlowException(ExceptionCode.RULEEXCEPTION_CLASSEXEC, e, statement, classPath, e.getMessage());
View Full Code Here


        try {

          Object classObjInstance = classObj.newInstance();

          if (classObjInstance instanceof SelectRulesScript) {
            SelectRulesScript selectRulesScript = (SelectRulesScript) classObjInstance;
            returnObjList = (Object) selectRulesScript.execute(parameter, sqlCommand, processEngineConfiguration);
          }
          if (classObjInstance instanceof BusinessRulesScript) {
            BusinessRulesScript businessRulesScript = (BusinessRulesScript) classObjInstance;
            returnObjList = (Object) businessRulesScript.execute(parameter, sqlCommand, processEngineConfiguration);
          }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.scriptlanguage.SelectRulesScript

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.