|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrTaskEvent
IlrTaskEvent
represents an executed task.
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 | |
---|---|
List<IlrRuleEvent> |
getRuleEvents()
Returns all rules fired by this task. |
List<IlrExecutionEvent> |
getSubExecutionEvents()
Returns all events fired by this task. |
List<IlrTaskEvent> |
getTaskEvents()
Returns all sub tasks executed by this task. |
IlrTaskInformation |
getTaskInformation()
Returns task information. |
Methods inherited from interface ilog.rules.res.session.ruleset.IlrExecutionEvent |
---|
getEndDate, getName, getStartDate |
Method Detail |
---|
List<IlrExecutionEvent> getSubExecutionEvents()
List<IlrRuleEvent> getRuleEvents()
List<IlrTaskEvent> getTaskEvents()
IlrTaskInformation getTaskInformation()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |