Document Cache Behavior In Mapping

Posted on June 11, 2014 at 4.00 PM - Kuala Lumpur, Malaysia

Some time, you will need to map several source documents to a single target document. To achieve this requirement, Boomi use document cache technique where the documents are stored or cached temporarily to be used during mapping. However document cache has certain behaviors that we need to be aware of, to understand as to why target document is created or not.

1. In order to use document cache we have to define the index to link it back with the main document. However in order for it to work we have to make sure that the level of the node between the document cache and target is the same, please see example below:

For example if you want to map email element from document cache (which is the same level as person_id_external used as the key in the index), to make it work we have to create the element at the same level at the target system. If you create it as higher or lower level element, then the mapping will not produce anything.

2. If source document cache has 2 different documents for the same index, then the mapping will produce 2 different document as well at the target side provided the value you map to the target value has different value, please see example below:

First document in document cache:

Document Cache - 1st document

Second document in document cache:

In this example, it will produce 2 target documents. However if the phone number is the same for both document, then it will produce only 1 target document.

Life is beautiful! Let's make it meaningful and colorful!