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

PropertyReturnsDescription
choicesMap<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.
nextNodeIdStringThe id of the funnel node a lead proceeds to when none of the choices' rule expressions evaluate true.
nodeIdStringThe unique id of this node within its funnel.
titleStringThe display title for this node, shown in the funnel editor.
xintThe horizontal position of this node on the funnel editor canvas.
yintThe 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.