ilog.rules.factory

Class IlrTaskFactory

  • java.lang.Object
    • ilog.rules.factory.IlrTaskFactory
  • All Implemented Interfaces:
    ilog.rules.factory.IlrRulesetElement, ilog.rules.factory.IlrTaskElement, java.io.Serializable
    Direct Known Subclasses:
    IlrFlowTaskFactory, IlrFunctionTaskFactory, IlrRuleTaskFactory


    public abstract class IlrTaskFactory
    extends java.lang.Object
    implements java.io.Serializable, ilog.rules.factory.IlrTaskElement
    An abstract class representing the superclass of a task definition of the ILOG Rule Language. It provides the settings common to all task types, such as:
    • name
    • initial and final actions
    • properties
    • completion flag value.

    Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short-term storage or RMI between applications running the same version of IBM Decision Server.

    See Also:
    IlrRuleTaskFactory, IlrFunctionTaskFactory, IlrFlowTaskFactory, Serialized Form
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the fully qualified name of the task.
        Returns:
        The fully qualified name of the task.
      • getShortName

        public java.lang.String getShortName()
        Gets the short name of the rule.
        Returns:
        The short name of the rule.
      • getFormalComment

        public java.lang.String getFormalComment()
        Returns the formal comment of the task.
        Returns:
        The comment of the task.
      • setFormalComment

        public void setFormalComment(java.lang.String comment)
        Sets the formal comment of the task.
        Parameters:
        comment - The comment of the task.
      • setProperties

        public void setProperties(IlrPropertyList properties)
        Sets the task properties.
        Parameters:
        properties - The task properties.
      • setInitialActions

        public void setInitialActions(IlrFunctionFactory function)
        Sets the task initial actions. They are implemented with a function whose return type must be void and without arguments. If any of these conditions is not verified, an IllegalArgumentException is thrown.
        Parameters:
        function - The function that implements the task initial actions.
      • getInitialActions

        public IlrFunctionFactory getInitialActions()
        Returns the function that implements the task initial actions.
        Returns:
        The task initial actions.
      • setFinalActions

        public void setFinalActions(IlrFunctionFactory function)
        Sets the task final actions. They are implemented with a function whose return type must be void and without arguments. If any of these conditions is not verified, an IllegalArgumentException is thrown.
        Parameters:
        function - The function that implements the task final actions.
      • getFinalActions

        public IlrFunctionFactory getFinalActions()
        Returns the function that implements the task final actions.
        Returns:
        The task final actions.
      • getProperties

        public IlrPropertyList getProperties()
        Returns the task properties.
        Returns:
        The task properties.
      • setCompletionFlagValue

        public void setCompletionFlagValue(IlrValue value)
        Deprecated. As of IBM Decision Server 8.0.1, the completion flag is deprecated
        Sets the completion flag for the task. The completion flag is a Boolean value evaluated at the end of the task body. If the value is true, the task is considered terminated and its final actions will be executed. If the value is false, the task is considered suspended, its final actions are not executed, and the ruleflow execution stops, keeping the task as the current task. If the passed value is not of boolean type, an IllegalArgumentException is thrown. The completion flag value is not mandatory. If no such value is defined, the task is terminated after execution of the task body.
        Parameters:
        value - The Boolean value for the task completion flag.
      • getCompletionFlagValue

        public IlrValue getCompletionFlagValue()
        Deprecated. As of IBM Decision Server 8.0.1, the completion flag is deprecated
        Returns the task completion flag.
        Returns:
        The Boolean value defined as the task completion flag.
      • hasEmptyBody

        public abstract boolean hasEmptyBody()
        Indicates whether the task has an empty body or not.
        Returns:
        true if the task body is empty, or false otherwise.
      • getPackage

        public IlrPackageFactory getPackage()
        Returns the package in which the task is defined.
        Returns:
        The package that contains the task.
      • getAllValues

        public java.util.ArrayList getAllValues()
        Provides all values referenced by the task definition. This method can make a factory exploration by a factory explorer easier. If the task references no values, the returned list is empty.
        Returns:
        All the values referenced by the task.
      • getAllStatements

        public java.util.ArrayList getAllStatements()
        Provides all statements referenced by the task definition. This method can make a factory exploration by a factory explorer easier. The returned list contains statements. If the task references no statements, the returned list is empty.
        Returns:
        All the statements referenced by the task.

© Copyright IBM Corp. 1987, 2017