Rule Execution Server API

ilog.rules.res.session.ruleset
Interface IlrExecutionEvent

All Known Subinterfaces:
IlrRuleEvent, IlrTaskEvent

public interface IlrExecutionEvent

IlrExecutionEvent represents an execution event.

Code example

The following code example shows how to extract the business names of the rules fired:

   protected static void addRuleFiredBusinessNames(IlrExecutionTrace trace,
         List executionEvents,
         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);
       }
     }
   }
 

Since:
7.0

Method Summary
 Date getEndDate()
          Returns the execution end date.
 String getName()
          Returns the name of this event.
 Date getStartDate()
          Returns the execution start date.
 

Method Detail

getName

String getName()
Returns the name of this event.

Returns:
The name of this event.

getStartDate

Date getStartDate()
Returns the execution start date.

Returns:
The execution start date.

getEndDate

Date getEndDate()
Returns the execution end date.

Returns:
The execution end date.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013