Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
maxLevel3
minLevel3
locationtop
styleborder:1
locationtop
typeflat
separatorpipe

...

Syntax

...

The parameters available to configure the Conditional Router mediator are as follows.

Parameter NameDescription
Continue after Routing

This parameter specifies whether

routing should be continued if any of the child routes are executed

the mediation flow should/should not continue after executing the conditional router mediator. Possible values are as follows.

  • Yes: If this is selected,
routing is continued after child routes are executed
  • mediation continues to execute (any other mediators specified) after the conditiional router mediator.
  • No: If this is selected,
routing is not continued after the child routes are executed
  • mediation discontinues after executing the conditiional router mediator. This is the default value.
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.
Image Modified
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.

Parameter NameDescription
Break after route
Possible values for this parameter are as follows

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.

  • True: If this is selected, a matching route would break the router, so that it does not continue to execute the next conditional route.
  • False: If this is selected,
a matching route would not break the router
  • the router continues to execute the next conditional route defined in the conditional router mediator.
Evaluator ExpressionThe expression to evaluate the condition based on which the target mediation sequence should be applied.
Target SequenceThe mediation sequence to be applied if the expression entered in the Evaluator Expression parameter evaluates to true.

Example

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.

...