IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

Global function extension

IBM® WebSphere® Multichannel Bank Transformation Toolkit global functions provide common utility functions of manipulating data for WebSphere Multichannel Bank Transformation Toolkit editors. WebSphere Multichannel Bank Transformation Toolkit global functions are available in the following three editors: Figure 1 shows global functions in the ECA editor:
Figure 1. Global functions in the ECA editor
Global functions in the ECA editor.
Table 1 provides information on the predefined global functions that are provided by WebSphere Multichannel Bank Transformation Toolkit.
Table 1. Global functions that are provided by WebSphere Multichannel Bank Transformation Toolkit
Category Function name Description Is server side Is client side
String function concat Concatenates two Strings Y Y
length Returns the length of a string Y Y
contains Returns whether a substring is part of a string Y Y
subString Returns a portion of a string Y Y
indexOf Returns the position of a substring Y Y
lastIndexOf Returns the position of a substring starting from the end Y Y
replace Replaces all occurrences of a substring in a string with a new value Y Y
trim Remove leading and trailing blanks Y Y
upperCase Converts a String to upper case Y Y
lowerCase Converts to lower case Y Y
compare Compares two strings lexicographically. Return 0 if string1 is the same as string2, return >0 if string1 is after string2, return <0 if string1 before strings in dictionary order Y Y
compareIgnoreCase Compares two Strings lexicographically ignoring case differences. Return 0 if string1 is the same as string2, return >0 if string1 is after string2, return <0 if string1 before strings in dictionary order Y Y
Number function round Returns the closest long or integer to a number Y Y
truncate Returns the truncated value of a number Y Y
absolute Returns the absolute value of a number Y Y
toString Returns value in String format Y N
parseNumber Return a number parsing from String Y N
Date function today Returns the current date Y Y
dayOfWeek Returns the day of the week Y Y
year Returns the year of the day in number Y Y
month Returns the month of the day in number Y Y
day Returns the date of the day in number Y Y
after Returns the date which is after than a given date with specified(days, months, years) period Y Y
before Returns the date which is before than a given date with specified(days, months, years) period Y Y
daysBetween Returns the days between the two dates in decimal as time in day is taken into account Y Y
natureDaysBetween Returns the nature days between the two dates ignoring time difference Y Y
parseDate Returns date in BTT Date type. 'pattern' argument defines the format (such as 'dd/MM/yyyy') of date parameter Y N
toString Returns date in String. 'pattern' argument defines the format (such as 'dd/MM/yyyy') of return date Y N
Collection function tableSize Returns the number of elements in an IndexedCollection Y N
tableAdd Adds the (numeric) values of a given column in an IndexedCollection Y N

Technical developers can extend WebSphere Multichannel Bank Transformation Toolkit global functions to implement application specific utility, such as converting a String to lower case or upper case.

To extend global functions, you must perform the following tasks:



Feedback