|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrExecutionTrace
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(); ListfiredRuleBusinessNames = new ArrayList (); Map allRules = trace.getRules(); int ruleFired = trace.getTotalRulesFired(); List executionEvents = trace.getExecutionEvents();
Method Summary | |
---|---|
Date |
getExecutionDate()
Returns the execution date. |
Long |
getExecutionDuration()
Returns the execution duration in milliseconds. |
List<IlrExecutionEvent> |
getExecutionEvents()
Returns the list of executed rules and tasks. |
InetAddress |
getInetAddress()
Returns the internet address. |
Map<String,IlrRuleInformation> |
getRules()
Returns the ruleset rules by name. |
Set<IlrRuleInformation> |
getRulesNotFired()
Returns the rule information for the rules that were not fired. |
Properties |
getSystemProperties()
Returns the system properties of the execution environment. |
Map<String,IlrTaskInformation> |
getTasks()
Returns the ruleset tasks by name. |
Set<IlrTaskInformation> |
getTasksNotExecuted()
Returns the task information for the tasks that were not executed. |
Long |
getTotalRulesFired()
Returns the number of rules fired. |
Long |
getTotalRulesNotFired()
Returns the number of rules that have not fired. |
Long |
getTotalTasksExecuted()
Returns the number of tasks executed. |
Long |
getTotalTasksNotExecuted()
Returns the number of tasks not executed. |
Collection<Object> |
getWorkingMemory()
Returns the working memory as a Collection . |
Method Detail |
---|
Long getTotalRulesFired()
null
is returned.Long getTotalRulesNotFired()
null
is returned.Long getTotalTasksExecuted()
null
is returned.Long getTotalTasksNotExecuted()
null
is returned.Date getExecutionDate()
null
is returned.Long getExecutionDuration()
null
is returned.Collection<Object> getWorkingMemory()
Collection
.
null
is returned.Set<IlrRuleInformation> getRulesNotFired()
IlrRuleInformation
objects for the rules
that were not fired. If this information is not
available, null
is returned.Set<IlrTaskInformation> getTasksNotExecuted()
IlrTaskInformation
objects for the tasks
that were not executed. If this information is not available,
null
is returned.Map<String,IlrRuleInformation> getRules()
null
is returned.Map<String,IlrTaskInformation> getTasks()
null
is returned.List<IlrExecutionEvent> getExecutionEvents()
null
is returned.InetAddress getInetAddress()
null
is returned.Properties getSystemProperties()
null
is returned.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |