Development tools : Global functions
  
Global functions
UNICOM® Digital Transformation Toolkit (UDTT™) Global functions enable functional developers to manipulate String, Date, Number and List data without coding.
Global functions can be used when:
Defining conditions for an ECA rule
Defining Condition in Condition state
Defining data formatter
Where global function are executed
Global functions can be executed on either the client side or the server side:
Global functions that are used in defining ECA rules are executed on the client side.
Global functions that are used in defining data mapping or conditions of condition state are executed on server side.
Some global functions are only meaningful on server side execution, such as List and Table functions. These functions do not occur in ECA rules definition.
Handling exceptions
When global functions are executed on the client side, they never throw an exception.
When global functions are executed on the server side, they might throw exceptions. For example, the subString function might throw IndexOutOfBoundsException if the start index is negative.
For server‑side global functions, there is a global flag in btt.xml to control the exception handling approach. You can define a field element under the kcoll element 'globalFunctions' in Settings. For example:
<field id="ignoreException" value="false"/>
true means the global function throws up exceptions to its invocation layer.
false means the global function handles the exception in its own logic.
The default value is false.
See
String category
Number category
Number Functions category
Date category
List and Table category
Engine.getInstance category
BigDecimal Manipulation category
BTTUtilitiesFunctions category
Cache service for SelectList and ComboBox
Support for Microsoft Internet Explorer: DojoDocMode tag