Rule Execution Server API

ilog.rules.factory
Class IlrTaskInstanceStatement

java.lang.Object
  extended by ilog.rules.factory.IlrBaseStatement
      extended by ilog.rules.factory.IlrFlowNodeStatement
          extended by ilog.rules.factory.IlrTaskInstanceStatement
All Implemented Interfaces:
ilog.rules.factory.IlrSourceElement, IlrStatement, 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 Summary
IlrTaskInstanceStatement(String label, IlrTaskFactory task)
           Builds a task invocation node for a ruleflow.
IlrTaskInstanceStatement(String label, IlrTaskFactory task, IlrFlowNodeStatement previousNode)
           Builds a task invocation node for a ruleflow and connects the created node to the passed node.
 
Method Summary
 IlrTaskFactory getTask()
           Returns the task invoked in the node.
 void setNextNode(IlrFlowNodeStatement node)
           Connects the passed node to this.
 
Methods inherited from class ilog.rules.factory.IlrFlowNodeStatement
exploreStatement, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrTaskInstanceStatement

public IlrTaskInstanceStatement(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(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.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013