public final class IlrTaskSwitchNodeStatement extends IlrSplitNodeStatement
switch 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 |
|---|
IlrTaskSwitchNodeStatement(java.lang.String name)
Builds an
switch node for a ruleflow. |
IlrTaskSwitchNodeStatement(java.lang.String name,
IlrFlowNodeStatement previousNode)
Builds a
switch node for a rule flow and connects the
created node to the passed node. |
| Modifier and Type | Method and Description |
|---|---|
IlrValue |
getValue()
Returns the value that will be tested by the
switch node. |
void |
setCaseNode(IlrConstantValue value,
IlrFlowNodeStatement node)
Sets the node that will be executed if the evaluation of the value
linked to the
switch matches the passed value. |
void |
setDefaultNode(IlrFlowNodeStatement node)
Sets the node that will be executed if no
case block
matches the switch value. |
void |
setNextNode(IlrFlowNodeStatement node)
This method should never be used; it throws an
UnsupportedOperationException exception.
|
void |
setValue(IlrValue value)
Sets the value that will be tested by the
switch node. |
closeexploreStatement, getNamepublic IlrTaskSwitchNodeStatement(java.lang.String name)
switch node for a ruleflow.
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.public IlrTaskSwitchNodeStatement(java.lang.String name,
IlrFlowNodeStatement previousNode)
switch 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 setValue(IlrValue value)
switch node.value - The value tested by the node.public IlrValue getValue()
switch node.public void setNextNode(IlrFlowNodeStatement node)
if use setCaseNode or
setDefaultNode instead.public void setCaseNode(IlrConstantValue value, IlrFlowNodeStatement node)
switch matches the passed value.
Only one case block is executed.value - The value for which the case block is said to match
the switch value.node - The node connected to the switch node
that will be executed if this case is matched.setDefaultNode(ilog.rules.factory.IlrFlowNodeStatement)public void setDefaultNode(IlrFlowNodeStatement node)
case block
matches the switch value.node - The node connected to the switch node
that will be executed if no case is matched.setCaseNode(ilog.rules.factory.IlrConstantValue, ilog.rules.factory.IlrFlowNodeStatement)© Copyright IBM Corp. 1987, 2017