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 for IlrExecutionTrace. This class adds convenience methods for the business names of tasks and rules.
    Since:
    7.0
    See Also:
    Serialized Form
    • Constructor Detail

      • IlrBusinessExecutionTrace

        public IlrBusinessExecutionTrace(IlrExecutionTrace trace)
        Builds a new IlrBusinessExecutionTrace 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 underlying IlrExecutionTrace 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 underlying IlrExecutionTrace 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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 interface IlrExecutionTrace
        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 a Collection.
        Specified by:
        getWorkingMemory in interface IlrExecutionTrace
        Returns:
        The working memory. If this information is not available, null is returned.

© Copyright IBM Corp. 1987, 2020