Versions Compared

Key

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

The Conditional Router Mediator (New in version 4.0) can be used to specify the routing of the message according to given conditions. Mediator This mediator checks whether the
"Condition" evaluates to true and mediates using the target sequence. Matching A matching route will break the router if the "Break after route" is set to true.

...

Table of Contents
maxLevel3
minLevel3
locationtop
styleborder:1
typeflat
separatorpipe

...

Syntax

Code Block
XML
XML
<conditionalRouter continueAfter="(true|false)">
    <route breakRoute="(true|false)">
      <condition ../>
      <target ../>
    </route>+
</conditionalRouter>

...

  • Continue after routing - (Yes/No), Whether Specify whether to continue the routing if any of the child routes are executed. The default value is No.
  • Break after route - If set to true, a matching route will break the router.
  • Evaluator Expression - Route condition.
  • Target Sequence - Target A target sequence need needs to be provided as registry key/local entry to do further mediate mediation processing.

Excerpt
hiddentrue

description of the Conditional Router Mediator in WSO2 ESB.