Boomi Tips: User Defined Map Function
Boomi provides map functions capability to allow the developer to be able to utilise the pre-built functions for data transformation purposes.
Apart from the standard pre-built functions, Boomi also allows user to build user define map function where it allows creation of sophisticated transformation by combining the standard functions available as a standalone component.
Consider a simple scenario where the source data provide the first name and the last name data whereas the target instance require a full name value in a specific format (i.e. <Last Name>, <First Name>) and require to be uppercase.
With the standard functions available, you can achieve this by concatenating the data into one based on the format requirements and you may require another map just to convert the data into uppercase.
However, with the user define map function, you are able to combine these standard functions and produce a final valid value to the target in a single map instead. For example:
With the user define map function approach:-
- it reduces the number of map component available in the design to apply multiple standard function just to transform a single target value
- it is capable to add complex logic by using a combination of the standard function to achieve a single data which comply with the target data
- it can be re-used in other map as it will be saved as a standalone component. This will reduce the effort of recreating the same function to achieve the same effect that needs to be applied in different maps.