For global functions that run on the server side, the implementation Java class of the global function must be registered in the btt.xml file so that it can be invoked at runtime.
<kColl id="globalFunctions"> <field id="BTTStringFunctions" value="com.ibm.btt.utils.GlobalFunctions" /> <field id="BTTDateFunctions" value="com.ibm.btt.utils.GlobalFunctions" /> <field id="BTTNumberFunctions" value="com.ibm.btt.utils.GlobalFunctions" /> <field id="BTTCollectionFunctions" value="com.ibm.btt.utils.GlobalFunctions" /> <field id="ExtensionFunctions" value="com.ibm.btt.alphasample.drop3.globalfunction.ExtendFunctions" /> </kColl>
For global functions that run on the browser side, global functions are mapped Javascript object automatically; therefore, the object name of the Javascript implementation should be the same as the name that is used for registering the global function for tooling.