Powered By

Free XML Skins for Blogger

Powered by Blogger

Wednesday, December 31, 2008

formatByExample in XI Message Mappings

Use

You use this function if you need to synchronize two queues of equal length with reference to their context change. The mapping runtime takes the values from the first queue, and the context change from the second queue. If the two inbound queues do not have the same number of values, the mapping runtime triggers an exception.

Example

Inbound Queues and Result Queue (Example)

1. Inbound Queue

A1

A2

A3


B1

B2




C1

2. Inbound Queue

W1




X1

X2


X3


Y1




Z1

Result Queue

A1




A2

A3


B1


B2




C1

In the example above, both the first and second inbound queues have six values (empty contexts are not counted). The second inbound queue dictates the structure of the result queue. Empty contexts are also included in this structure. The mapping runtime replaces the values from the second queue with the corresponding values from the first queue.

No comments: