### Dynamic Routing Action Properties

In a message flow, use a dynamic routing action to assign a route for a message based on routing information available in an XQuery resource.

This is a terminal action, which means you cannot add another action after this one. However, this action can contain request and response actions.

In the Message Flow Editor, click a dynamic routing action to display its properties in the Properties view. Use these properties pages to configure the selected dynamic routing action. The pages are:

- Dynamic Routing
- Comment
- Namespaces
- Variables

The Dynamic Routing page has the following option:

Option | Description
--- | ---
Service | An XQuery expression that defines the route to be taken by a message. To create or edit an expression, click <Expression> (or the expression_fragment, if one is already defined) to display the XQuery/XSLT Expression Editor. In the XQuery/XSLT Expression editor, enter an Xquery expression, the result of which is similar to: `<ctx:route>` `<ctx:service isProxy='true'>{$service}</ctx:service>` `<ctx:operation>{$operation}</ctx:operation>` `</ctx:route>`
Note: | If a proxy service is being invoked, `isProxy` attribute should be set to true. - The service name is the fully qualified service name. - The operation element is optional

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.