Predefined EL functions

The following table lists predefined EL functions and descriptions.

Syntax Description
${variable.
toUpperCase()}
Converts given string to upper case only symbols.
${variable.toLowerCase()} Converts given string to lower case only symbols.
${variable.substring(beginIndex,endIndex)}

Returns a substring for a given string.

The substring begins at the specified beginIndex and extends to the character at index endIndex - 1.

Thus the length of the substring is endIndex-beginIndex.

${extract(variable, delimiter, position)} Splits given string to tokens based on a delimiter.
${leadingFolder(path)} For given directory/file path returns only the leading one.
${parentFolder(path)} For given directory/file path returns parent folder path.
${dayOffset(format, offset)} Returns a date representing today's date with the offset of the days parameter.

The following table lists predefined EL functions and Advanced Routing examples.

Syntax Advanced Routing Usage
${variable.toUpperCase()} ${transfer.target.toUpperCase()}
${variable.toLowerCase()} ${transfer.target.toLowerCase()}
${variable.substring(beginIndex,endIndex)} ${transfer.target.substring(0,5)}
${extract(variable, delimiter, position)} ${extract('payroll_Axway_21457584375.txt', '_', 2)} returns Axway
${leadingFolder(path)}

${leadingFolder('/opt/TMWD/st51')} - returns 'opt',

${leadingFolder('/opt')} - returns 'opt',

${leadingFolder('/')} - returns '/'

${parentFolder(path)} ${parentFolder(‘/opt/TMWD/st51’)} - returns ‘/opt/TMWD’,
${parentFolder(‘/’)} - returns ‘/’,
${parentFolder(‘/usr/file.txt’)} - returns ‘/usr’
${dayOffset(format, offset)}

${dateOffset('yymmdd', '-5')} - returns 10th if today is 15th of August formatted as per the specified format parameter - 120810.

${dateOffset('yymmdd', '+7')} - returns 22th if today is 15th of August formatted as per the specified format parameter - 120822.

${dayOffset('ddmmyy', '+1') ge '090414'}

Related topics:

Related Links