Adding Rename Actions
Use the rename action to rename elements selected by an XPath expression without modifying the contents of the element. The rename action is one of a set of update 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 Rename action
- Navigate to where you want to add the action, as described in
Adding and Editing Actions in Message Flows.
- Click the appropriate icon, then select Add an Action > Message Processing > Rename.
- Click <XPath>. The XPath Expression Editor page is displayed. The XPath expression is used to specify the data (in the named variable) that will be renamed. See
Creating and Editing Inline XQuery and XPath Expressions.
- In variable field, enter the context variable that holds the element you want to rename. To learn more about context variables, see
Appendix A, Message Context..
- Do one of the following:
- To rename selected elements using a localname, select the first localname radio button, then enter a local name in the localname field.
- To rename selected elements using a namespace, select the first namespace radio button, then enter a namespace in the namespace field.
- To rename selected elements using a local name and namespace, select the localname and namespace radio button, then enter a local name and namespace in the localname and namespace fields.
After you finish
When you complete the configuration of this action, continue by configuring other actions or by saving your configuration, as described in
Adding and Editing Actions in Message Flows.