ilog.rules.res.session.ruleset
Class IlrBusinessExecutionTrace
- java.lang.Object
-
- ilog.rules.res.session.ruleset.IlrBusinessExecutionTrace
-
- All Implemented Interfaces:
- IlrExecutionTrace, java.io.Serializable
public class IlrBusinessExecutionTrace extends java.lang.Object implements IlrExecutionTrace
IlrBusinessExecutionTrace
is a wrapper forIlrExecutionTrace
. This class adds convenience methods for the business names of tasks and rules.- Since:
- 7.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description protected IlrExecutionTrace
trace
-
Constructor Summary
Constructors Constructor and Description IlrBusinessExecutionTrace(IlrExecutionTrace trace)
Builds a newIlrBusinessExecutionTrace
instance.
-
Method Summary
Methods Modifier and Type Method and Description protected void
addRuleFiredBusinessNames(java.util.List<IlrExecutionEvent> executionEvents, java.util.List<java.lang.String> firedRuleBusinessNames)
protected void
addTaskExecutedBusinessNames(java.util.List<IlrExecutionEvent> events, java.util.List<java.lang.String> executedTaskBusinessNames)
java.util.Set<java.lang.String>
getAllRuleBusinessNames()
Returns the business names of all the rules in the ruleset.java.util.Set<java.lang.String>
getAllTaskBusinessNames()
Returns the business names for all tasks in the ruleset.java.util.Set<java.lang.String>
getdRuleNotFiredBusinessNames()
Returns the business names for the rules that have not been executed.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.java.util.List<java.lang.String>
getRuleFiredBusinessNames()
Returns the list of the business names for the rules fired.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.List<java.lang.String>
getTaskExecutedBusinessNames()
Returns the list of the business names for the executed task.java.util.Set<java.lang.String>
getTaskNotExecutedBusinessNames()
Returns the business names for the tasks that have not been executed.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 aCollection
.
-
-
-
Field Detail
-
trace
protected IlrExecutionTrace trace
-
-
Constructor Detail
-
IlrBusinessExecutionTrace
public IlrBusinessExecutionTrace(IlrExecutionTrace trace)
Builds a newIlrBusinessExecutionTrace
instance.- Parameters:
trace
- The execution trace to wrap in this object.
-
-
Method Detail
-
getTaskNotExecutedBusinessNames
public java.util.Set<java.lang.String> getTaskNotExecutedBusinessNames()
Returns the business names for the tasks that have not been executed.- Returns:
- A set of business names.
-
getdRuleNotFiredBusinessNames
public java.util.Set<java.lang.String> getdRuleNotFiredBusinessNames()
Returns the business names for the rules that have not been executed.- Returns:
- A set of business names.
-
getAllRuleBusinessNames
public java.util.Set<java.lang.String> getAllRuleBusinessNames()
Returns the business names of all the rules in the ruleset.- Returns:
- A set of business names.
-
getAllTaskBusinessNames
public java.util.Set<java.lang.String> getAllTaskBusinessNames()
Returns the business names for all tasks in the ruleset.- Returns:
- A set of business names.
-
getRuleFiredBusinessNames
public java.util.List<java.lang.String> getRuleFiredBusinessNames()
Returns the list of the business names for the rules fired. This list is taken from the underlyingIlrExecutionTrace
object.- Returns:
- The list of business names for the rules fired.
-
getTaskExecutedBusinessNames
public java.util.List<java.lang.String> getTaskExecutedBusinessNames()
Returns the list of the business names for the executed task. This list is taken from the underlyingIlrExecutionTrace
object.- Returns:
- The list of business names for the executed task.
-
addRuleFiredBusinessNames
protected void addRuleFiredBusinessNames(java.util.List<IlrExecutionEvent> executionEvents, java.util.List<java.lang.String> firedRuleBusinessNames)
-
addTaskExecutedBusinessNames
protected void addTaskExecutedBusinessNames(java.util.List<IlrExecutionEvent> events, java.util.List<java.lang.String> executedTaskBusinessNames)
-
getRules
public java.util.Map<java.lang.String,IlrRuleInformation> getRules()
Description copied from interface:IlrExecutionTrace
Returns the ruleset rules by name.- Specified by:
getRules
in interfaceIlrExecutionTrace
- Returns:
- All the rules in the ruleset. If this information is not available,
null
is returned.
-
getTasks
public java.util.Map<java.lang.String,IlrTaskInformation> getTasks()
Description copied from interface:IlrExecutionTrace
Returns the ruleset tasks by name.- Specified by:
getTasks
in interfaceIlrExecutionTrace
- Returns:
- All tasks in the ruleset. If this information is not available,
null
is returned.
-
getExecutionDate
public java.util.Date getExecutionDate()
Description copied from interface:IlrExecutionTrace
Returns the execution date.- Specified by:
getExecutionDate
in interfaceIlrExecutionTrace
- Returns:
- The execution date. If this information is not
available,
null
is returned.
-
getExecutionDuration
public java.lang.Long getExecutionDuration()
Description copied from interface:IlrExecutionTrace
Returns the execution duration in milliseconds.- Specified by:
getExecutionDuration
in interfaceIlrExecutionTrace
- Returns:
- The execution duration in milleseconds. If this information is not
available,
null
is returned.
-
getExecutionEvents
public java.util.List<IlrExecutionEvent> getExecutionEvents()
Description copied from interface:IlrExecutionTrace
Returns the list of executed rules and tasks.- Specified by:
getExecutionEvents
in interfaceIlrExecutionTrace
- Returns:
- The list of executed rules and tasks. If this information is not available,
null
is returned.
-
getInetAddress
public java.net.InetAddress getInetAddress()
Description copied from interface:IlrExecutionTrace
Returns the internet address.- Specified by:
getInetAddress
in interfaceIlrExecutionTrace
- Returns:
- The internet address. If this information is not available,
null
is returned.
-
getRulesNotFired
public java.util.Set<IlrRuleInformation> getRulesNotFired()
Description copied from interface:IlrExecutionTrace
Returns the rule information for the rules that were not fired.- Specified by:
getRulesNotFired
in interfaceIlrExecutionTrace
- Returns:
- The list of
IlrRuleInformation
objects for the rules that were not fired. If this information is not available,null
is returned.
-
getSystemProperties
public java.util.Properties getSystemProperties()
Description copied from interface:IlrExecutionTrace
Returns the system properties of the execution environment.- Specified by:
getSystemProperties
in interfaceIlrExecutionTrace
- Returns:
- The system properties of the execution environment. If this
information is not available,
null
is returned.
-
getTasksNotExecuted
public java.util.Set<IlrTaskInformation> getTasksNotExecuted()
Description copied from interface:IlrExecutionTrace
Returns the task information for the tasks that were not executed.- Specified by:
getTasksNotExecuted
in interfaceIlrExecutionTrace
- Returns:
- The list of
IlrTaskInformation
objects for the tasks that were not executed. If this information is not available,null
is returned.
-
getTotalRulesFired
public java.lang.Long getTotalRulesFired()
Description copied from interface:IlrExecutionTrace
Returns the number of rules fired.- Specified by:
getTotalRulesFired
in interfaceIlrExecutionTrace
- Returns:
- The number of rules fired. If this information is not available,
null
is returned.
-
getTotalRulesNotFired
public java.lang.Long getTotalRulesNotFired()
Description copied from interface:IlrExecutionTrace
Returns the number of rules that have not fired.- Specified by:
getTotalRulesNotFired
in interfaceIlrExecutionTrace
- Returns:
- The number of rules that have not fired. If this information is not
available,
null
is returned.
-
getTotalTasksExecuted
public java.lang.Long getTotalTasksExecuted()
Description copied from interface:IlrExecutionTrace
Returns the number of tasks executed.- Specified by:
getTotalTasksExecuted
in interfaceIlrExecutionTrace
- Returns:
- The number of tasks executed. If this information is not
available,
null
is returned.
-
getTotalTasksNotExecuted
public java.lang.Long getTotalTasksNotExecuted()
Description copied from interface:IlrExecutionTrace
Returns the number of tasks not executed.- Specified by:
getTotalTasksNotExecuted
in interfaceIlrExecutionTrace
- Returns:
- The number of tasks not executed. If this information is not
available,
null
is returned.
-
getWorkingMemory
public java.util.Collection<java.lang.Object> getWorkingMemory()
Description copied from interface:IlrExecutionTrace
Returns the working memory as aCollection
.- Specified by:
getWorkingMemory
in interfaceIlrExecutionTrace
- Returns:
- The working memory. If this information is not
available,
null
is returned.
-
-