IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

Creating and registering a global function

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.

Creating a global function

Technical developers must first create a function definition file to declare the functions that will be implemented. A sample function definition file is shown here:
<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.

Registering a global function

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.

In the Extension Element Details panel, enter the following information:
  • In the class field, select the global functions declaration class.
  • In the config field, select the global functions definition file.


Feedback