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 the mediation flow should/should not continue after executing the conditional router mediator. Possible values are as follows.
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|
You can specify this for each conditional route of the conditional route mediator. It specifies whether the router should/should not continue after executing the specified conditional route.
|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.