ilog.rules.factory

Class IlrFlowTaskFactory

  • All Implemented Interfaces:
    ilog.rules.factory.IlrRulesetElement, ilog.rules.factory.IlrTaskElement, java.io.Serializable


    public class IlrFlowTaskFactory
    extends IlrTaskFactory

    This class represents the class of a flow-based task definition of the IRL language. It provides the specific body as flow described in extended IRL code.

    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
    • Constructor Detail

      • IlrFlowTaskFactory

        public IlrFlowTaskFactory(IlrReflect reflect,
                          java.lang.String name)
        Deprecated. Use instead IlrFlowTaskFactory(IlrReflect reflect, IlrPackageFactory pkg, String name).

        Builds a flow-based task by specifying a reflect and a name. The task is considered to belong to the default package. The body is empty.

        Parameters:
        reflect - The reflect object of this flow-based task factory.
        name - The name of the flow-based task.
      • IlrFlowTaskFactory

        public IlrFlowTaskFactory(IlrReflect reflect,
                          IlrPackageFactory pkg,
                          java.lang.String name)

        Builds a flow-based task by specifying a reflect, a package and a name. The task belongs to the specified package. In case the package is null, the task is considered to belong to the default package. The body is empty.

        Parameters:
        reflect - The reflect object of this flow-based task factory.
        pkg - The package to which the task belongs.
        name - The name of the flow-based task.
    • Method Detail

      • setRoot

        public void setRoot(IlrFlowNodeStatement root)
        Sets the body of the flow-based task by setting the root node of the flow.
        Parameters:
        root - The root node of the flow-based task.
      • compile

        public void compile()

        Makes checks to insure that the graph is correctly built. This method has to be called once the flow is built in order to make the checks.

      • hasEmptyBody

        public boolean hasEmptyBody()
        Indicates whether the task has an empty body or not, that is, if the flow referred by the task is empty.
        Specified by:
        hasEmptyBody in class IlrTaskFactory
        Returns:
        true if the task body is empty, or else it returns false.
      • 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.
        Overrides:
        getAllStatements in class IlrTaskFactory
        Returns:
        All the statements referenced by the task.

© Copyright IBM Corp. 1987, 2017