Skip to main content
Version: Current

Choice

Mode: Streaming Mode: Request-Response

Description

The Choice component is a more advanced version of the Filter component. Instead of defining a single condition, it allows you to specify multiple output branches, each with its own match condition.

When a record arrives, the Choice node evaluates the match conditions in order, from top to bottom as shown in the configuration panel. The data record is routed to the first branch whose condition evaluates to true, and no further conditions are checked after that.

The evaluation order is also visible on the scenario graph: each outgoing condition branch from the Choice node is annotated with a number indicating its position in the evaluation sequence.

Parameters and configuration

The configuration panel contains two configuration fields for each condition branch leaving the choice node:

NameDescription
Branch nameDerived from the next node name
Match conditionSpEL expression of type boolean

To change the order of branches, simply drag and drop them in the node’s configuration panel.