public abstract class ReturnBuilder extends java.lang.Object implements NodeBuilder
Create a return node in the current Flow
.
Constructor and Description |
---|
ReturnBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract ReturnBuilder |
fromOutcome(java.lang.String outcome)
Set the outcome of the current return node. |
abstract ReturnBuilder |
fromOutcome(ValueExpression outcome)
Set the outcome of the current return node. |
abstract ReturnBuilder |
markAsStartNode()
Mark this node as the start node in the flow. |
public abstract ReturnBuilder fromOutcome(java.lang.String outcome)
Set the outcome of the current return node.
outcome
- A ValueExpression
String String
that will be the outcome of the return.java.lang.NullPointerException
- if any of the parameters are null
public abstract ReturnBuilder fromOutcome(ValueExpression outcome)
Set the outcome of the current return node.
outcome
- A ValueExpression
String
that will be the outcome of the return.java.lang.NullPointerException
- if any of the parameters are null
public abstract ReturnBuilder markAsStartNode()
NodeBuilder
Mark 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 NodeBuilder