|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrTraceFilter
Use the class IlrTraceFilter
to select the information
that you want to see in the execution trace.
The following code example shows how to set all the trace filters.
IlrSessionFactory sessionFactory = getFactory(); // Create a session request object IlrSessionRequest sessionRequest = sessionFactory.createRequest(); String rulesetPath = "/miniloanruleapp/miniloanrules"; if (!rulesetVersion.equalsIgnoreCase("Latest")) { rulesetPath = rulesetPath + "/" + rulesetVersion; } sessionRequest.setRulesetPath(IlrPath.parsePath(rulesetPath)); // Enable trace to retrieve info on executed rules sessionRequest.setTraceEnabled(true); // get all traces sessionRequest.getTraceFilter().setInfoAllFilters(true);
Field Summary | |
---|---|
static String |
INFO_BOUND_OBJECT_BY_RULE
Filter for Bound Object by Rule |
static String |
INFO_EXECUTION_DATE
Filter for Execution Date |
static String |
INFO_EXECUTION_DURATION
Filter for Execution Duration |
static String |
INFO_EXECUTION_EVENTS
Filter for Execution Events |
static String |
INFO_INET_ADDRESS
Filter for Inet Address |
static String |
INFO_RULES
Filter for List of All Rules |
static String |
INFO_RULES_NOT_FIRED
Filter for List of Rules Not Fired |
static String |
INFO_SYSTEM_PROPERTIES
Filter for System Properties |
static String |
INFO_TASKS
Filter for List of All Tasks |
static String |
INFO_TASKS_NOT_EXECUTED
Filter for List of Tasks Not Executed |
static String |
INFO_TOTAL_RULES_FIRED
Filter for Total Number of Rules Fired |
static String |
INFO_TOTAL_RULES_NOT_FIRED
Filter for Total Number of Rules Not Fired |
static String |
INFO_TOTAL_TASKS_EXECUTED
Filter for Total Number of Tasks Executed |
static String |
INFO_TOTAL_TASKS_NOT_EXECUTED
Filter for Total Number of Tasks Not Executed |
static String |
INFO_WORKING_MEMORY
Filter for Working Memory |
static String |
WORKING_MEMORY_FILTER
Filter to set Working Memory filter |
Method Summary | |
---|---|
String |
getWorkingMemoryFilter()
Returns the list of class names to trace. |
Boolean |
isInfoBoundObjectByRule()
Returns the trace filter on the list of objects bound by the rules fired before execution. |
Boolean |
isInfoExecutionDate()
Checks the trace filter on the execution date. |
Boolean |
isInfoExecutionDuration()
Checks the trace filter on the execution duration. |
Boolean |
isInfoExecutionEvents()
Returns the trace filter on the execution events, that is, the rules fired and the tasks executed. |
Boolean |
isInfoInetAddress()
Tests whether the Internet address filter is activated. |
Boolean |
isInfoRules()
Tests whether the filter is activated for IlrExecutionTrace.getRules() |
Boolean |
isInfoRulesNotFired()
Checks the trace filter on the rules that were not fired. |
Boolean |
isInfoSystemProperties()
Returns the trace filter on the working memory. |
Boolean |
isInfoTasks()
Tests whether the filter is activated for IlrExecutionTrace.getTasks() . |
Boolean |
isInfoTasksNotExecuted()
Returns the trace filter on the tasks that were not executed. |
Boolean |
isInfoTotalRulesFired()
Checks the trace filter on the number of rules fired. |
Boolean |
isInfoTotalRulesNotFired()
Checks the trace filter on the number of rules that were not fired. |
Boolean |
isInfoTotalTasksExecuted()
Checks the trace filter on the number of tasks executed. |
Boolean |
isInfoTotalTasksNotExecuted()
Checks the trace filter on the number of tasks that were not executed. |
Boolean |
isInfoWorkingMemory()
Returns the trace filter on the working memory. |
void |
loadFromProperties(Map<String,String> properties)
Loads all the filters from the properties passed. |
void |
setFilter(String filterName,
String value)
Sets a filter from a the name of a constant. |
void |
setInfoAllFilters(Boolean enable)
Enables all filters. |
void |
setInfoBoundObjectByRule(Boolean enabled)
Filter on the object bound by the fired rule before its execution. |
void |
setInfoExecutionDate(Boolean enabled)
Filter on the execution date. |
void |
setInfoExecutionDuration(Boolean enabled)
Filter on the execution duration. |
void |
setInfoExecutionEvents(Boolean enabled)
Filter on the execution events. |
void |
setInfoInetAddress(Boolean enabled)
Filter on the Internet address. |
void |
setInfoRules(Boolean enabled)
Activates or deactivates the Rules filter. |
void |
setInfoRulesNotFired(Boolean enabled)
Filter on the rules that were not fired. |
void |
setInfoSystemProperties(Boolean enabled)
Global filter on the properties of the execution environment system. |
void |
setInfoTasks(Boolean enabled)
Activates or deactivates the Tasks filter. |
void |
setInfoTasksNotExecuted(Boolean enabled)
Filter on the tasks that were not executed. |
void |
setInfoTotalRulesFired(Boolean enabled)
Filters on the number of rules fired. |
void |
setInfoTotalRulesNotFired(Boolean enabled)
Filters on the number of rules that were not fired. |
void |
setInfoTotalTasksExecuted(Boolean enabled)
Filter on the number of tasks executed. |
void |
setInfoTotalTasksNotExecuted(Boolean enabled)
Filter on the number of tasks that were not executed. |
void |
setInfoWorkingMemory(Boolean enabled)
Global filter on the working memory. |
void |
setWorkingMemoryFilter(String wmFilter)
Filter on object class names inside the working memory. |
Map<String,String> |
toMap()
Returns a map of all filters. |
Field Detail |
---|
static final String INFO_TOTAL_RULES_FIRED
static final String INFO_TOTAL_TASKS_EXECUTED
static final String INFO_EXECUTION_EVENTS
static final String INFO_TOTAL_RULES_NOT_FIRED
static final String INFO_TOTAL_TASKS_NOT_EXECUTED
static final String INFO_RULES_NOT_FIRED
static final String INFO_TASKS_NOT_EXECUTED
static final String INFO_EXECUTION_DURATION
static final String INFO_RULES
static final String INFO_TASKS
static final String INFO_SYSTEM_PROPERTIES
static final String WORKING_MEMORY_FILTER
static final String INFO_WORKING_MEMORY
static final String INFO_BOUND_OBJECT_BY_RULE
static final String INFO_INET_ADDRESS
static final String INFO_EXECUTION_DATE
Method Detail |
---|
void setInfoExecutionEvents(Boolean enabled)
enabled
- Set this parameter to true
to activate this filter.void setWorkingMemoryFilter(String wmFilter)
wmFilter
- A string with comma-separated class names (for example, com.xyz.myClass,com.xyz.MyOtherClass
.
Set this parameter to null
to remove the filter.void setInfoWorkingMemory(Boolean enabled)
enabled
- Set this parameter to true
to activate this filter.void setInfoSystemProperties(Boolean enabled)
enabled
- Set this parameter to true
to activate this filter.void setInfoBoundObjectByRule(Boolean enabled)
enabled
- Set this parameter to true
to activate this filter.Boolean isInfoExecutionEvents()
true
if the execution trace contains the rules fired.Boolean isInfoWorkingMemory()
true
if the execution trace contains the working memory.Boolean isInfoSystemProperties()
true
if the execution trace contains the system properties.String getWorkingMemoryFilter()
Boolean isInfoBoundObjectByRule()
void loadFromProperties(Map<String,String> properties)
false
.
The passed properties must contain filters expressed as:
INFO_TOTAL_RULES_FIRED=true INFO_WORKING_MEMORY=true WORKING_MEMORY_FILTER=com.xyz.MyClass1,com.xyz.MyClass2 ...where the name of the property corresponds to the JavaBeans property to be set on the
IlrTraceFilter
object. For example:
INFO_TOTAL_RULES_FIRED=true -> setInfoNumRulesFired(true)
properties
- a Properties
object that contains the filters.Map<String,String> toMap()
void setFilter(String filterName, String value)
filterName
- the name of the filter to set.value
- the value of the filter.void setInfoTotalRulesFired(Boolean enabled)
enabled
- Set this parameter to true
to filter on the number of
rules fired.void setInfoTotalTasksExecuted(Boolean enabled)
enabled
- Set this parameter to true
to filter on the number of
tasks executed.void setInfoTotalRulesNotFired(Boolean enabled)
enabled
- Set this parameter to true
to filter on the number of
rules that were not fired.void setInfoTotalTasksNotExecuted(Boolean enabled)
enabled
- Set this parameter to true
to filter on the number of
tasks that were not executed.void setInfoRulesNotFired(Boolean enabled)
enabled
- Set this parameter to true
to filter on the rules
that were not fired.void setInfoTasksNotExecuted(Boolean enabled)
enabled
- Set this parameter to true
to filter on the tasks
that were not executed.void setInfoExecutionDate(Boolean enabled)
enabled
- Set this parameter to true
to filter on the execution
date.void setInfoExecutionDuration(Boolean enabled)
enabled
- Set this parameter to true
to filter on the execution
duration.void setInfoInetAddress(Boolean enabled)
enabled
- Set this parameter to true
to filter on the Internet address.Boolean isInfoRulesNotFired()
true
if the execution trace contains the rules that were not fired.Boolean isInfoTasksNotExecuted()
true
if the execution trace contains the tasks that were not executed.Boolean isInfoExecutionDate()
true
if the execution trace contains the execution date.Boolean isInfoExecutionDuration()
true
if the execution trace contains the execution duration.Boolean isInfoTotalRulesFired()
true
if the execution trace contains the number of rules
fired.Boolean isInfoTotalTasksExecuted()
true
if the execution trace contains the number of tasks
executed.Boolean isInfoTotalRulesNotFired()
true
if the execution trace contains the number of rules
that were not fired.Boolean isInfoTotalTasksNotExecuted()
true
if the execution trace contains the number of tasks
that were not executed.Boolean isInfoRules()
IlrExecutionTrace.getRules()
true
if the filter is activated for this method.Boolean isInfoTasks()
IlrExecutionTrace.getTasks()
.
true
if the filter is activated for this method.Boolean isInfoInetAddress()
true
if the Internet address filter is activatedvoid setInfoRules(Boolean enabled)
enabled
- Set this parameter to true
to activate the Rules
filter.void setInfoTasks(Boolean enabled)
enabled
- Set this parameter to true
to activate the Tasks
filter.void setInfoAllFilters(Boolean enable)
enable
- Set this parameter to true
to enable all the filters.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |