This documentation is for WSO2 ESB version 4.0.3. View documentation for the latest release.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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



Syntax

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

UI Configuration

1. The user can define any number of routes. Each and every route must contain a "condition" which is to be evaluated and a predefined "Target" sequence, which will be used to mediate further. To add a route, click on the "Add Route" link.

2. Specify the following option of the Route:

  • Continue after routing - (Yes/No), 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, matching route will break the router.
  • Evaluator Expression - Route condition .
  • Target Sequence - Target sequence need to be provided as registry key/local entry to do further mediate processing.

  • No labels