In this example, two identical Person records are mapped to each other. Only those records that contain an Id that is less than ten are to be copied to the target message. To facilitate this, the example uses a filter.
The target field Person is a structure field that is only created if the condition /ns:MapExampleFlatStructureMessage/Person/Id < 10 is fulfilled. The target-field mapping for the Person field therefore uses the createIf function.
/ns:MapExampleFlatStructureMessage/Person/Id is assigned to the context MapExampleFlatStructureMessage so that it can be read before the target field Person is created.
A simple assignment copies all other fields.