Apama Documentation : Connecting Apama Applications to External Components : Using Message Services : Using Correlator-Integrated Messaging for JMS : Mapping Apama events and JMS messages : Adding an XPath XML transformation to a mapping rule
Adding an XPath XML transformation to a mapping rule
To specify an XPath transformation details
1. In the Mapping Definitions section, draw the line indicating the mapping from source to target.
2. In the Mapping Definitions section, click on the line that specifies the mapping rule you are interested in.
3. Under Mapping Element Details on the Properties tab, in the Transformation Type field, select XPath.
4. In the XPath Expression field, specify a valid XPath expression. You can either enter the XPath expression directly or you can use the XPath builder tool to construct an expression.
To use the XPath Builder:
a. Click the Browse button [...] to the right of the XPath Expression field. The Select input for XPath helper dialog is displayed.
b. In the Select input for XPath helper dialog, click Browse [...] and select the name of the file that contains a definition of the XML structure (the drop-down arrow allows you to select the scope of the selection process). Click OK. The XPath Helper opens, showing the XML structure of the selected file in the left pane. See also Using the XPath Helper.
c. In the XPath Helper, build the desired XPath expression by double-clicking on nodes of interest in the left pane. The resultant XPath expression appears in the XPath tab in the upper right pane. If the XML document makes use of namespaces, change the namespace option from Prefix to Namespace or Local name.
d. In the XPath Helper, click OK. The XPath Builder closes and the XPath Expression field displays the XPath expression you built.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback