Apama Documentation : Connecting Apama Applications to External Components : Correlator-Integrated Support for the Java Message Service (JMS) : Using the Java Message Service (JMS) : Mapping Apama events and JMS messages : Using convention-based XML mapping with JMS messages : Combining convention-based XML mapping with template-based XML generation
Combining convention-based XML mapping with template-based XML generation
It is also possible to combine the convention-based approach with template-based XML generation. An XML template can be used to generate the top-level XML document, while one or more placeholders can be added and mapped to XML sub-document strings generated by convention-based XML mapping.
To combine these approaches
1. Right-click a source event (representing an XML root element) or sequence (representing a list of XML elements) and click Add Computed Node.
2. Select Convert to XML from the drop-down list and click OK. This will result in a Convert To Xml node representing a generated XML string.
3. Drag a mapping line from that node to the target $placeholder node specifying where the XML snippet should be inserted into the top-level document.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback