ilog.rules.res.persistence.trace
Interface IlrTraceQuery
-
public interface IlrTraceQuery
This interface is used for building criteria to query Decision Warehouse and for holding the built criteria.
This interface is used in particular when implementing theIlrTraceDAO.deleteTraces(IlrTraceQuery)
andIlrTraceDAO.findTraces(IlrTraceQuery)
methods.
To implement these methods, you must interpret the tree of criteria returned by thegetCriteria()
method.
Below is a typical example of an implementation that provides a String representation of a tree ofIlrCriteria
objects.public class CriteriaToStringConverter { public String convertCriteria(IlrCriteria criteria) { if (criteria instanceof IlrBooleanCriteria) { return convertBooleanCriteria((IlrBooleanCriteria) criteria); } else { return convertPlainCriteria((IlrCriteriaPlain<?>) criteria); } } private String convertPlainCriteria(IlrCriteriaPlain<?> plain) { return plain.getName() + plain.getOperator() + plain.getOther(); } private String convertBooleanCriteria(IlrBooleanCriteria criteria) { String criteria1AsString = convertCriteria(criteria.getCriteria1()); String operatorAsString = criteria.getOperator().toString(); String criteria2AsString = convertCriteria(criteria.getCriteria2()); return '(' + criteria1AsString + " " + operatorAsString + " " + criteria2AsString + ')'; } }
- Since:
- 7.0
-
-
Method Summary
Methods Modifier and Type Method and Description IlrCriteriaPart.IlrCriteriaPartString
allRules()
Returns the criteria on the list of rules.IlrCriteriaPart.IlrCriteriaPartString
allTasks()
Returns the criteria on the list of tasks.IlrCriteriaPart.IlrCriteriaPartLong
elapsedTime()
Returns the criteria on the elapsed time.IlrCriteriaPart.IlrCriteriaPartString
executedRulesetPath()
Returns the criteria on the executed ruleset path.IlrCriteriaPart.IlrCriteriaPartString
executionId()
Returns the criteria on the execution identifier.IlrCriteriaPart.IlrCriteriaPartString
executionOutput()
Returns the criteria on the execution output.IlrCriteriaPart.IlrCriteriaPartString
executionTrace()
Returns the criteria on the complete execution trace.IlrCriteria
getCriteria()
IlrDWTraceFilter
getFilter()
Deprecated.Not usedIlrCriteriaPart.IlrCriteriaPartString
inputParameters()
Returns the criteria on the input parameters.IlrCriteriaPart.IlrCriteriaPartString
location()
Returns the criteria on the run location.IlrCriteriaPart.IlrCriteriaPartLong
nbRules()
Returns the criteria on the number of rules.IlrCriteriaPart.IlrCriteriaPartLong
nbRulesFired()
Returns the criteria on the number of rules fired.IlrCriteriaPart.IlrCriteriaPartLong
nbRulesNotFired()
Returns the criteria on the number of rules not fired.IlrCriteriaPart.IlrCriteriaPartLong
nbTasks()
Returns the criteria on the number of tasks.IlrCriteriaPart.IlrCriteriaPartLong
nbTasksExecuted()
Returns the criteria on the number of tasks executed.IlrCriteriaPart.IlrCriteriaPartLong
nbTasksNotExecuted()
Returns the criteria on the number of tasks not executed.IlrCriteriaPart.IlrCriteriaPartString
outputParameters()
Returns the criteria on the output parameters.IlrCriteriaPart.IlrCriteriaPartString
requestRulesetPath()
Returns the criteria on the request ruleset path.IlrCriteriaPart.IlrCriteriaPartString
rulesFired()
Returns the criteria on the list of rules fired.IlrCriteriaPart.IlrCriteriaPartString
tasksExecuted()
Returns the criteria on the list of tasks executed.IlrCriteriaPart.IlrCriteriaPartLong
timeStamp()
Returns the criteria on the execution date.IlrCriteriaPart.IlrCriteriaPartString
userData()
Returns the criteria on the user data.
-
-
-
Method Detail
-
allRules
IlrCriteriaPart.IlrCriteriaPartString allRules()
Returns the criteria on the list of rules.- Returns:
- A
String
criteria.
-
rulesFired
IlrCriteriaPart.IlrCriteriaPartString rulesFired()
Returns the criteria on the list of rules fired.- Returns:
- A
String
criteria.
-
allTasks
IlrCriteriaPart.IlrCriteriaPartString allTasks()
Returns the criteria on the list of tasks.- Returns:
- A
String
criteria.
-
elapsedTime
IlrCriteriaPart.IlrCriteriaPartLong elapsedTime()
Returns the criteria on the elapsed time.- Returns:
- A
Long
criteria.
-
executedRulesetPath
IlrCriteriaPart.IlrCriteriaPartString executedRulesetPath()
Returns the criteria on the executed ruleset path.- Returns:
- A
String
criteria.
-
executionId
IlrCriteriaPart.IlrCriteriaPartString executionId()
Returns the criteria on the execution identifier.- Returns:
- A
String
criteria.
-
tasksExecuted
IlrCriteriaPart.IlrCriteriaPartString tasksExecuted()
Returns the criteria on the list of tasks executed.- Returns:
- A
String
criteria.
-
executionOutput
IlrCriteriaPart.IlrCriteriaPartString executionOutput()
Returns the criteria on the execution output.- Returns:
- A
String
criteria.
-
executionTrace
IlrCriteriaPart.IlrCriteriaPartString executionTrace()
Returns the criteria on the complete execution trace.- Returns:
- A
String
criteria.
-
getFilter
@Deprecated IlrDWTraceFilter getFilter()
Deprecated. Not usedReturns the Decision Warehouse trace filter.- Returns:
- The filter.
-
inputParameters
IlrCriteriaPart.IlrCriteriaPartString inputParameters()
Returns the criteria on the input parameters.- Returns:
- A
String
criteria.
-
location
IlrCriteriaPart.IlrCriteriaPartString location()
Returns the criteria on the run location.- Returns:
- A
String
criteria.
-
nbRules
IlrCriteriaPart.IlrCriteriaPartLong nbRules()
Returns the criteria on the number of rules.- Returns:
- A
Long
criteria.
-
nbRulesFired
IlrCriteriaPart.IlrCriteriaPartLong nbRulesFired()
Returns the criteria on the number of rules fired.- Returns:
- A
Long
criteria.
-
nbRulesNotFired
IlrCriteriaPart.IlrCriteriaPartLong nbRulesNotFired()
Returns the criteria on the number of rules not fired.- Returns:
- A
Long
criteria.
-
nbTasks
IlrCriteriaPart.IlrCriteriaPartLong nbTasks()
Returns the criteria on the number of tasks.- Returns:
- A
Long
criteria.
-
nbTasksExecuted
IlrCriteriaPart.IlrCriteriaPartLong nbTasksExecuted()
Returns the criteria on the number of tasks executed.- Returns:
- A
Long
criteria.
-
nbTasksNotExecuted
IlrCriteriaPart.IlrCriteriaPartLong nbTasksNotExecuted()
Returns the criteria on the number of tasks not executed.- Returns:
- A
Long
criteria.
-
outputParameters
IlrCriteriaPart.IlrCriteriaPartString outputParameters()
Returns the criteria on the output parameters.- Returns:
- A
String
criteria.
-
requestRulesetPath
IlrCriteriaPart.IlrCriteriaPartString requestRulesetPath()
Returns the criteria on the request ruleset path.- Returns:
- A
String
criteria.
-
timeStamp
IlrCriteriaPart.IlrCriteriaPartLong timeStamp()
Returns the criteria on the execution date.- Returns:
- A
Long
criteria.
-
userData
IlrCriteriaPart.IlrCriteriaPartString userData()
Returns the criteria on the user data.- Returns:
- A
String
criteria.
-
getCriteria
IlrCriteria getCriteria()
- Returns:
- the current criteria of this query.
-
-