|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RuleEvaluator
| Method Summary | |
|---|---|
void |
abortQueuedTasks()Use this method to clear the rule compilation queue. |
boolean |
evaluate(java.lang.Object context, RuleDefinition def, RuleCache cache, EvaluationOptions opts)Deprecated. |
boolean |
evaluateEligibilityRule(java.lang.Object context, RuleDefinition def, RuleCache cache, EvaluationOptions opts)Evaluate an external eligibility rule. |
double |
evaluateScoringRule(RuleDefinition def, RuleCache cache, EvaluationOptions opts)Evaluate an external scoring rule. |
java.util.List<RuleDefinitionContextPair> |
validateAndCache(java.util.List<RuleDefinitionContextPair> ruleDefContextList, RuleCache cache)Use this method to preload external rules in bulk at ILS deploy time. |
boolean |
validateAndCache(java.lang.Object context, RuleDefinition def, RuleCache cache)Use this method to preload external rules at ILS deploy time. |
| Method Detail |
|---|
boolean evaluate(java.lang.Object context,
RuleDefinition def,
RuleCache cache,
EvaluationOptions opts)
throws ValidationException,
EvaluationException
context -def -cache -opts -ValidationExceptionEvaluationException
boolean evaluateEligibilityRule(java.lang.Object context,
RuleDefinition def,
RuleCache cache,
EvaluationOptions opts)
throws ValidationException,
EvaluationException
context - A Choice object for choice eligbility rules, a choice group for choice group eligibility rules, null for filtering rules.def - RuleDefinition to be evaluated.cache - The RuleCache from the Application.opts - Evaluation options.ValidationException - if the rule fails to compile and if opts.RuntimeExceptionPolicy() == RuntimeExceptionPolicy.THROW.EvaluationException - if the execution of the rule fails and if opts.RuntimeExceptionPolicy() == RuntimeExceptionPolicy.THROW.
double evaluateScoringRule(RuleDefinition def,
RuleCache cache,
EvaluationOptions opts)
throws ValidationException,
EvaluationException
def - RuleDefinition to be evaluated.cache - The RuleCache from the Application.opts - Evaluation options.ValidationException - if the rule fails to compile and if opts.RuntimeExceptionPolicy() == RuntimeExceptionPolicy.THROW.EvaluationException - if the execution of the rule fails and if opts.RuntimeExceptionPolicy() == RuntimeExceptionPolicy.THROW.
boolean validateAndCache(java.lang.Object context,
RuleDefinition def,
RuleCache cache)
throws ValidationException
context - A Choice object for choice eligbility rules, a choice group for choice group eligibility rules, null for filtering rules.def - RuleDefinition to be evaluated.cache - The RuleCache from the Application.ValidationException - if the rule fails to compile and if opts.RuntimeExceptionPolicy() == RuntimeExceptionPolicy.THROW.
java.util.List<RuleDefinitionContextPair> validateAndCache(java.util.List<RuleDefinitionContextPair> ruleDefContextList,
RuleCache cache)
ruleDefContextList - a list of pairs of rule definitions and context objects. Context objects may be a Choice object for choice eligibility rules, a choice group for choice group eligibility rules, null for filtering rules.cache - The RuleCache from the Application.void abortQueuedTasks()
|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||