Package org.dayatang.rule

Examples of org.dayatang.rule.RuleRuntimeException


            RuleExecutionSet ruleExecutionSet = createRuleExecutionSet(ruleExecutionSetProvider, ruleSource, executionSetProperties);
            String packageName = ruleExecutionSet.getName();
            ruleAdministrator.registerRuleExecutionSet(packageName, ruleExecutionSet, null);
            session = (StatelessRuleSession) ruleRuntime.createRuleSession(packageName, sessionProperties, RuleRuntime.STATELESS_SESSION_TYPE);
        } catch (Exception e) {
            throw new RuleRuntimeException(e);
        }
       
    }
View Full Code Here


    @Override
    public List executeRules(List facts) {
        try {
            return session.executeRules(facts);
        } catch (InvalidRuleSessionException e) {
            throw new RuleRuntimeException("Invalid Rule Session.", e);
        } catch (RemoteException e) {
            throw new IllegalStateException(e);
        }
    }
View Full Code Here

    public void release() {
        try {
            session.release();
        } catch (Exception e) {
            throw new RuleRuntimeException("Cannot release rule session!!", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.dayatang.rule.RuleRuntimeException

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.