Mediator default routingrule

An other feature or in Oracle SOA Suite is the default routing rule in the mediator. To show how that all works i have made a small example:

A mediator component that routes depending on the amount of the

In the mediator i defined two rules:

  • Rule 1 when amount > 10 then a build order process will be started
  • Rule 1 when amount > <5 then a manual order process will be started

I have made a gap between the rules to test the working of the Default Routing Rule.
To create a default rule just add a rule and click on the filter icon with the green circle. It will turn red to indicate that it’s a Default Rule. Also the Filter expression will be filled with the text ‘>>Default Routing Rule’

Then i deployed the composite to my Weblogic Server and tested it with three kinds of values. And they worked as expected:

  • amount 15 triggered the BuildOrderProcess
  • amount 2 triggered the ManualOrderProcess
  • amount 7 triggered the DefaultRuleProcess

Great feature to let the messages alway’s pass the mediator. Use this feature not for know routes but use it as a catch all feature. Because you don’t know what the message is containing.

Popularity: 3% [?]

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

No Responses to “Mediator default routingrule”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>