ilog.rules.factory

Class IlrTaskInstanceStatement

  • All Implemented Interfaces:
    ilog.rules.factory.IlrSourceElement, IlrStatement, java.io.Serializable


    public final class IlrTaskInstanceStatement
    extends IlrFlowNodeStatement

    This class represents the class of a task invocation node in a ruleflow.

    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:
    IlrTaskFactory, IlrFlowNodeStatement, Serialized Form
    • Constructor Detail

      • IlrTaskInstanceStatement

        public IlrTaskInstanceStatement(java.lang.String label,
                                IlrTaskFactory task)

        Builds a task invocation node for a ruleflow. It is useful to set a label if the node is the target of a goto statement.

        Parameters:
        label - The label used to target the node in a goto statement.
        task - The task to which the node refers.
      • IlrTaskInstanceStatement

        public IlrTaskInstanceStatement(java.lang.String label,
                                IlrTaskFactory task,
                                IlrFlowNodeStatement previousNode)

        Builds a task invocation node for a ruleflow and connects the created node to the passed node. This constructor must not be called to connect the new node to an IlrTaskIfNodeStatement nor to an IlrTaskSwitchNodeStatement; instead use IlrTaskIfNodeStatement.setTrueNode, IlrTaskIfNodeStatement.setFalseNode, IlrTaskSwitchNodeStatement.setCaseNode, or IlrTaskSwitchNodeStatement.setDefaultNode. It is useful to set a label if the node is the target of a goto statement.

        Parameters:
        label - The label used to target the node in a goto statement.
        task - The task to which the node refers.
        previousNode - The node that is before the new node in the ruleflow. The two nodes are connected by calling the method IlrFlowNodeStatement.setNextNode.
    • Method Detail

      • getTask

        public IlrTaskFactory getTask()

        Returns the task invoked in the node.

        Returns:
        The task referred to by the node.
      • setNextNode

        public void setNextNode(IlrFlowNodeStatement node)

        Connects the passed node to this. The connected node is executed after this during the flow execution.

        Specified by:
        setNextNode in class IlrFlowNodeStatement
        Parameters:
        node - The node connected after this.

© Copyright IBM Corp. 1987, 2017