Journey action that branches a lead to a different next node based on the first matching rule expression. Represented as a "decision" node in a funnel definition. On entry, each entry in choices is evaluated in turn against the lead, and the lead proceeds to the node id of the first expression that evaluates true. If none match, the lead proceeds to elseNextNodeId, or a RuntimeException is thrown if no default exit is configured.
Group: Journeys
Implements: GoalAction
Properties
| Property | Returns | Description |
|---|---|---|
| choices | Map<String,Expression> | The rules evaluated in turn to decide which node a lead proceeds to, keyed by the id of the node to proceed to when that rule's expression evaluates true. |
| nextNodeId | String | The id of the funnel node a lead proceeds to when none of the choices' rule expressions evaluate true. |
| nodeId | String | The unique id of this node within its funnel. |
| title | String | The display title for this node, shown in the funnel editor. |
| x | int | The horizontal position of this node on the funnel editor canvas. |
| y | int | The vertical position of this node on the funnel editor canvas. |
Methods
getChoices()
Returns: Map<String,Expression>
The rules evaluated in turn to decide which node a lead proceeds to, keyed by the id of the node to proceed to when that rule's expression evaluates true.
getTitle()
Returns: String
The display title for this node, shown in the funnel editor.
getNextNodeId()
Returns: String
The id of the funnel node a lead proceeds to when none of the choices' rule expressions evaluate true.
getNodeId()
Returns: String
The unique id of this node within its funnel.
getX()
Returns: int
The horizontal position of this node on the funnel editor canvas.
getY()
Returns: int
The vertical position of this node on the funnel editor canvas.