public final class IlrTaskIfNodeStatement extends IlrSplitNodeStatement
if 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.
| Constructor and Description |
|---|
IlrTaskIfNodeStatement(java.lang.String name)
Builds an
if node for a ruleflow. |
IlrTaskIfNodeStatement(java.lang.String name,
IlrFlowNodeStatement previousNode)
Builds an
if node for a rule flow and connects the created
node to the passed node. |
| Modifier and Type | Method and Description |
|---|---|
IlrFlowNodeStatement |
getFalseNode()
Returns the node connected to the
if node that will be
executed if the test returns false. |
IlrTest |
getTest()
Returns the test linked to the
if node. |
IlrFlowNodeStatement |
getTrueNode()
Returns the node connected to the
if node that will be
executed if the test returns true. |
void |
setFalseNode(IlrFlowNodeStatement node)
Sets the node that will be executed in case the test returns
false. |
void |
setNextNode(IlrFlowNodeStatement node)
This method should never be used; it throws an
UnsupportedOperationException
exception.
|
void |
setTest(IlrTest test)
Sets the test linked to the
if node. |
void |
setTrueNode(IlrFlowNodeStatement node)
Sets the node that will be executed in case the test returns
true. |
closeexploreStatement, getNamepublic IlrTaskIfNodeStatement(java.lang.String name)
if node for a ruleflow.
It is useful to set a label if the node is the target of a goto
statement.name - The label The label used to target the node in a goto
statement.public IlrTaskIfNodeStatement(java.lang.String name,
IlrFlowNodeStatement previousNode)
if node for a rule flow and connects the created
node to the passed node. This constructor should not be called to connect
the new node to an IlrTaskIfNodeStatement nor to an
IlrTaskSwitchNodeStatement. Instead, you should use
IlrTaskIfNodeStatement.setTrueNode,
IlrTaskIfNodeStatement.setFalseNode,
IlrTaskSwitchNodeStatement.setCaseNode,
IlrTaskSwitchNodeStatement.setDefaultNode.
It is useful to set a label if the node is the target of a goto
statement.name - The label used to target the node in a goto statement.previousNode - The node that is before the new node in the
ruleflow. The two nodes are connected by calling the method
IlrFlowNodeStatement.setNextNode.public void setTest(IlrTest test)
if node.test - The test executed by the node.public IlrTest getTest()
if node.public void setNextNode(IlrFlowNodeStatement node)
if use
setTrueNode or setFalseNode instead.public void setTrueNode(IlrFlowNodeStatement node)
true.node - The node connected to the if node that will
be executed in case the if node's test returns
true.setFalseNode(ilog.rules.factory.IlrFlowNodeStatement)public IlrFlowNodeStatement getTrueNode()
if node that will be
executed if the test returns true.if node that will be
executed if the test returns true.public void setFalseNode(IlrFlowNodeStatement node)
false.node - The node connected to the if node that will be
executed in case the if node's test returns
false.setTrueNode(ilog.rules.factory.IlrFlowNodeStatement)public IlrFlowNodeStatement getFalseNode()
if node that will be
executed if the test returns false.if node that will be
executed if the test returns false.© Copyright IBM Corp. 1987, 2017