MapExampleFilterRecordsByQualifier

Use

This example maps two identical Person records on to each other. Only records of this type are to be transferred to the target message where the ID of the person is lower than 10. The example illustrates a filter.

Solution

The target field Person is a structure field that is only to be created if the condition /ns:Map Example FlatStructureMessage/Person/Id < 10 is fulfilled. The function createIf is therefore used in the target field mapping for the Person field:

In order that /ns:Map Example FlatStructureMessage/Person/Id can be read before creating the Person target field, it is assigned to the context Map Example FlatStructureMessage .

All other fields are transferred using a simple assignment.