Posted on June 11, 2014 at 2.39 PM - Kuala Lumpur, Malaysia
Mapping is required to be done when the source structure differs from target structure. Just like any other integration platform, Boomi has the capability to perform mapping from one structure to another. For direct mapping, we can easily drag and drop the source to target field. We can also use standard function to perform simple manipulation of the source field and there is quite a few of these function available:
Aside from the standard function, we also can create user defined function (UDF) as shown below:
One example of the usage of UDF is to retrieve execution ID which may be required to be passed on to the target system. By having this ID, target system will be able to provide better error notification to support team and thus provide better end to end trace-ability.
Following is the script to be used:
// Import the ExecutionManager class
import com.boomi.execution.ExecutionManager;
//Retrieve current execution ID
executionId = ExecutionManager.getCurrent().getExecutionId();
After the UDF is created, the execution ID can be passed on by linking it to the target field
Life is beautiful! Let's make it meaningful and colorful!