
A message mapping queue consists of all the values of a field in the data flow editor. This applies to source field, target fields, and any fields created by mapping steps. These queues are important tools for testing because you can display the source field values, target field values, and any other field values that the mapping step created in the message mapping as soon as test data is available.
Queues Used in the Mapping Process
- Inbound queue
Consists of data from fields in the source message.
- Processing queue
Consists of data from inbound queues that the message mapping template processes.
- Result queue
Consists of data for entry in fields in the target message.
Hint
You can debug individual steps in the message mapping process by displaying the queue for each function in the message mapping.You can perform message mapping at runtime using queues. A queue contains all the values that relate to a field in the message mapping. There is a queue for each XML hierarchy level. If you create an XML instance in the test environment editor, you can display the various queues in the data flow editor.
Runtime Queues
- Source structure
A queue exists for each field in the source structure.
- Input and result queues
Standard and user-defined functions process the input queues and write the result of a calculation to a result queue. The result queue of one function can also serve as the input queue for another function.
- Target fields
A queue exists for each target field. The limitations of the target field determine which values from the target field queue are written in the target structure.
Note
The field name and the structure hierarchy in which a field exists determines the field. If two fields have the same name but occur at different levels (paths), two separate queues are created.By using queues, you can process large XML messages quickly.
A Document Object Model (DOM) parser builds the entire XML tree for an XML file and uses excessive memory and CPU time. A queue uses a Simple API for XML (SAX) parser that only builds the values of a hierarchy level, resulting in faster processing.