A global function is used in the condition state of the Processor editor to define expressions for different conditions. IBM® WebSphere® Multichannel Bank Transformation Toolkit implements several functions by default. Technical developers might want to extend the WebSphere Multichannel Bank Transformation Toolkit predefined functions to implement project specific functions. A plug-in extension point is provided for technical developers to implement project specific functions.
<functions> <function name="concat" returnType="String" description="" > <parameters> <parameter name="string1" description="%concatString1" type="String" /> <parameter name="string2" description="%concatString2" type="String" /> </parameters> </function> <function name="length" returnType="Integer" description="" > <parameters> <parameter name="string1" description="%descString1" type="String" /> </parameters> </function> </functions>
After creating the function definition file, technical developers must create a Java class to implement the declared functions. The class contains the set of implemented static methods that correspond to the declared global functions.
After creating a function definition file and a Java class to implement the declared functions, technical developers must register the definition file and Java class as a plug-in extension point called com.ibm.btt.tools.transaction.dominate.palette.globalFunctions.