|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrRuleEvent
IlrRuleEvent
represents an executed rule.
The following code example shows how to extract the business names of the rules fired:
protected static void addRuleFiredBusinessNames(IlrExecutionTrace trace, ListexecutionEvents, List firedRuleBusinessNames) { Map allRules = trace.getRules(); if (executionEvents != null && allRules != null) { for (IlrExecutionEvent event : executionEvents) { if (event instanceof IlrRuleEvent) { String bname = allRules.get(event.getName()).getBusinessName(); firedRuleBusinessNames.add(bname); } else { List subEvents = ((IlrTaskEvent) event).getSubExecutionEvents(); addRuleFiredBusinessNames(trace, subEvents, firedRuleBusinessNames); } } }
Method Summary | |
---|---|
IlrRuleAction |
getAction()
Deprecated. This method is deprecated because a DE rule can be associated only with a single action Use getActionName() |
String |
getActionName()
Returns the action name of the rule. |
List<Object> |
getObjects()
Returns all objects bound by the rule executed. |
int |
getPriority()
Returns the rule priority. |
IlrRuleInformation |
getRuleInformation()
Returns the rule information. |
Methods inherited from interface ilog.rules.res.session.ruleset.IlrExecutionEvent |
---|
getEndDate, getName, getStartDate |
Method Detail |
---|
int getPriority()
List<Object> getObjects()
IlrRuleInformation getRuleInformation()
IlrRuleAction getAction()
getActionName()
String getActionName()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |