|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RulesProxy
Provides a simple proxy to the rules engine being used. This only needs a single instance across all the proxies.
Method Summary | |
---|---|
java.util.List<ConditionResult> |
evaluateRules(java.lang.String ruleName,
java.util.List inputData)
Evaluate a named rule set |
boolean |
isRegistered(java.lang.String ruleName)
|
boolean |
registerRules(java.lang.String ruleName,
java.lang.String[] conditions,
java.lang.String[] paramNames)
Method that takes the rules and registers them against the rules engine the name parameter is the key to getting those things back so it needs to be unique (probably method signature) |
Method Detail |
---|
boolean registerRules(java.lang.String ruleName, java.lang.String[] conditions, java.lang.String[] paramNames) throws javax.rules.RuleException, java.rmi.RemoteException
ruleName
- the rules to executeconditions
- the rules to evaluateparamNames
- the parameter names to use in the rules, part of the binding
javax.rules.admin.RuleExecutionSetCreateException
java.rmi.RemoteException
javax.rules.admin.RuleExecutionSetRegisterException
javax.rules.RuleException
boolean isRegistered(java.lang.String ruleName)
ruleName
-
java.util.List<ConditionResult> evaluateRules(java.lang.String ruleName, java.util.List inputData) throws javax.rules.RuleException, java.rmi.RemoteException
ruleName
- the rule set to executeinputData
- the data to perform the evaluation on
java.rmi.RemoteException
javax.rules.RuleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |