In a message flow, use a routing table to select different routes based upon the results of a single XQuery expression. A routing table action contains a set of routes wrapped in a switch-style condition table.
This is a terminal action, which means you cannot add another action after this one. However, this action can contain request and response actions.
When you add a routing table action to a message flow in the Message Flow Editor, the routing table action contains a case action with a path to a routing action plus a default case action with a path to a default routing action, as shown below. Click add condition to add another condition to the routing table.
In the Message Flow Editor, click the publish table action itself (the Publish Table icon or the bounding box connected to the icon) to display the Publish Tables properties page in the Properties view. Use these properties pages to configure the selected publish table action. The pages are:
The Routing Table properties page has the following option:
Option
|
Description
|
---|---|
Expression
|
An XQuery expression, which at run time returns the value upon which the routing decision will be made.
To create or edit an XQuery expression, click <Expression> (or the expression_fragment, if one is already defined) to display the
XQuery/XSLT Expression Editor.
|
Use the Comment page to add a comment, if desired:
Use the Namespaces page to see a list of defined namespaces or to create a new one.
Use the Variables page to see a list of defined context variables or to create a new one. For more information about context variables, see Message Context in the AquaLogic Service Bus User Guide.
In the Message Flow Editor, click a case action to display its properties in the Properties view. Use this properties page to configure the selected case action, as described below:
Option
|
Description
|
---|---|
Select a comparison operator from the list. Then enter a value against which the value returned from the XQuery expression defined for the routing table action will be evaluate
|