The Conditional Router Mediator specifies how a message should be routed based on given conditions. The specified target sequence is applied if the condition of the mediator evaluates to
The Conditional Router mediator is a content-aware mediator.
The parameters available to configure the Conditional Router mediator are as follows.
|Continue after Routing|
This parameter specifies whether routing should be continued if any of the child routes are executed. Possible values are as follows.
|Add Route||Click this link to add a route. The conditional route will be added as a child to the Conditional Router mediator in the mediator tree as shown below.|
You can add multiple conditional routes to a Conditional Router mediator by clicking on this link.
Click on the conditional route in the mediator tree to configure it. The parameters available to configure a conditional route are as follows.
|Break after route|
Possible values for this parameter are as follows.
|Evaluator Expression||The expression to evaluate the condition based on which the target mediation sequence should be applied.|
|Target Sequence||The mediation sequence to be applied if the expression entered in the Evaluator Expression parameter evaluates to |
See Sample 157: Conditional Router for Routing Messages based on HTTP URL, HTTP Headers and Query Parameters for an example of the Conditional Router mediator.