public abstract class SwitchBuilder extends Object implements NodeBuilder
Create a switch node in the current Flow.
| Constructor and Description |
|---|
SwitchBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract SwitchCaseBuilder |
defaultOutcome(String outcome)
Set the default outcome of the current switch. |
abstract SwitchCaseBuilder |
defaultOutcome(ValueExpression outcome)
Set the default outcome of the current switch. |
abstract SwitchBuilder |
markAsStartNode()
Mark this node as the start node in the flow. |
abstract SwitchCaseBuilder |
switchCase()
Create a switch case in the current switch. |
public abstract SwitchCaseBuilder switchCase()
Create a switch case in the current switch.
public abstract SwitchCaseBuilder defaultOutcome(String outcome)
Set the default outcome of the current switch.
outcome - A ValueExpression String that will be the
default outcome of the switch.NullPointerException - if any of the parameters are nullpublic abstract SwitchCaseBuilder defaultOutcome(ValueExpression outcome)
Set the default outcome of the current switch.
outcome - A ValueExpression that will be the default outcome of the switch.NullPointerException - if any of the parameters are nullpublic abstract SwitchBuilder markAsStartNode()
NodeBuilderMark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node.
markAsStartNode in interface NodeBuilderCopyright © 2017 JBoss by Red Hat. All rights reserved.