Adding Routing Tables to Route Nodes
A routing table is a set of routes wrapped in a switch-style condition table. It is a short-hand construct that allows different routes to be selected based upon the results of a single XQuery expression.
There is a nesting limit of four cumulative levels in the stage editor. If you attempt to add a fifth level, this nesting action is not displayed. Cumulative levels include all branching actions: If... Then... conditions, publish tables, and route tables. For example, you can have 2 levels of conditionals, then a publish table with a route table inside of it, bringing the total to 4 levels. If you attempt to add another conditional (to the last publish table), the conditional is not displayed.
Identify target services for messages and configure how the messages are routed to these services:
This is a terminal action, which means you cannot add another action after this one. However, this action can contain request and response actions.
Before you begin
These instructions assume you are already editing a message flow in the Edit Message Flow page, as explained in
Creating, Editing, and Viewing Message Flows.
To add a Routing Table to a Route Node
- Navigate to where you want to add the action, as described in
Adding and Editing Actions in Message Flows.
- Click the
Route Node icon, then click Edit Route. The Edit Stage Configuration page is displayed.
- Click the
Add an Action icon, then select Communication > Routing Table. The routing table action is displayed.
- From the Operator list, select a comparison operator, then enter a value expression in the adjacent field.
- Click <Service>. The Select Service page is displayed.
- Select a service from the list, then click Submit.
- If you want to invoke an operation on the service, select an operation from the Operation list
- If you want the outbound operation to be the same as the inbound operation, select the Use inbound operation for outbound check box.
- In the Request Actions field, click Add an Action to add an action, then select an action that you want to associate with the service. You can add more than one action.
- In the Response Actions field, click Add an Action to add an action, then select an action that you want to associate with the service. You can add more than one action.
To learn more about the types of request and response actions you can add, see
Adding and Editing Actions in Message Flows.
- To insert a new case, click the
Case icon, then select Insert New Case.
- Repeat steps 2-7 for the new case. You can click the
Case icon, then select Insert Default Case to add a default case at the end whose routes are selected if none of the preceding cases is satisfied.
- Click Save.
- On the Edit Message Flow page, continue to construct the message flow, as described in
Creating, Editing, and Viewing Message Flows.
- Click Save to commit the updates in the current session.
- To end the session and deploy the configuration to the run time, click Activate under Change Center.