Posted on Apr. 5, 2010 at 07.33 PM - Kuala Lumpur, Malaysia
When we create a user defined function in a message mapping, the system creates a Java class in the background. We can define global variables in this Java class that can then be used in all user defined functions. Two methods are also created automatically: init and cleanUp. When the mapping is run, these two methods are called automatically: init is called prior to message mapping and cleanUp is called afterwards.
The Java sections can be found in the message mapping on the Functions tab page. Over here, we can create global variables which then can be used in all user defined functions, add necessary codes to method init and cleanUp.
Enjoy it!
Life is beautiful! Let's make it meaningful and colorful!