public interface IlrExecutionTrace
extends java.io.Serializable
IlrExecutionTrace represents the detailed information about ruleset
execution.
Using IlrExecutionTrace, you have access to a lot of information about
the execution such as:
The following code example shows how to retrieve the list of rules fired and execution events from the execution trace.
IlrStatelessSession rulesession = factory.createStatelessSession();
IlrSessionRequest request = factory.createRequest();
request.setRulesetPath(new IlrPath("/MyruleApp/Myruleset");
request.setInputParameters(map);
request.setTraceEnabled(true);
IlrSessionResponse response = rulesession.execute(request);
IlrExecutionTrace trace = sessionResponse.getRulesetExecutionTrace();
List firedRuleBusinessNames = new ArrayList ();
Map allRules = trace.getRules();
int ruleFired = trace.getTotalRulesFired();
List executionEvents = trace.getExecutionEvents();
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getExecutionDate()
Returns the execution date.
|
java.lang.Long |
getExecutionDuration()
Returns the execution duration in milliseconds.
|
java.util.List<IlrExecutionEvent> |
getExecutionEvents()
Returns the list of executed rules and tasks.
|
java.net.InetAddress |
getInetAddress()
Returns the internet address of the host where the execution trace is retrieved.
|
java.util.Map<java.lang.String,IlrRuleInformation> |
getRules()
Returns the ruleset rules by name.
|
java.util.Set<IlrRuleInformation> |
getRulesNotFired()
Returns the rule information for the rules that were not fired.
|
java.util.Properties |
getSystemProperties()
Returns the system properties of the execution environment.
|
java.util.Map<java.lang.String,IlrTaskInformation> |
getTasks()
Returns the ruleset tasks by name.
|
java.util.Set<IlrTaskInformation> |
getTasksNotExecuted()
Returns the task information for the tasks that were not executed.
|
java.lang.Long |
getTotalRulesFired()
Returns the number of rules fired.
|
java.lang.Long |
getTotalRulesNotFired()
Returns the number of rules that have not fired.
|
java.lang.Long |
getTotalTasksExecuted()
Returns the number of tasks executed.
|
java.lang.Long |
getTotalTasksNotExecuted()
Returns the number of tasks not executed.
|
java.util.Collection<java.lang.Object> |
getWorkingMemory()
Returns the working memory as a
Collection. |
java.lang.Long getTotalRulesFired()
null is returned.java.lang.Long getTotalRulesNotFired()
null is returned.java.lang.Long getTotalTasksExecuted()
null is returned.java.lang.Long getTotalTasksNotExecuted()
null is returned.java.util.Date getExecutionDate()
null is returned.java.lang.Long getExecutionDuration()
null is returned.java.util.Collection<java.lang.Object> getWorkingMemory()
Collection.null is returned.java.util.Set<IlrRuleInformation> getRulesNotFired()
IlrRuleInformation objects for the rules
that were not fired. If this information is not
available, null is returned.java.util.Set<IlrTaskInformation> getTasksNotExecuted()
IlrTaskInformation objects for the tasks
that were not executed. If this information is not available,
null is returned.java.util.Map<java.lang.String,IlrRuleInformation> getRules()
null is returned.java.util.Map<java.lang.String,IlrTaskInformation> getTasks()
null is returned.java.util.List<IlrExecutionEvent> getExecutionEvents()
null is returned.java.net.InetAddress getInetAddress()
null is returned.java.util.Properties getSystemProperties()
null is returned.© Copyright IBM Corp. 1987, 2017