Functions

Listed below are the default functions supported by the Advantage application and can be used as part of the expression provided in the Validation field on the Configurable Validation table to facilitate readable expressions.

Functions

Description

empty

Evaluates whether argument passed is 'empty'. Returns true when the argument is:

  • null

  • An empty string

  • An array of length zero

  • A collection of size zero

  • An empty map

Examples:

empty(FUND_CD)

!empty(TRANS_AMT)

size

Evaluates the 'size' of the argument passed. This method returns:

  • 0 if the argument is null

  • Length of an array

  • Length of a string

  • Size of a Collection

  • Size of a Map

  • The result of calling a method 'public int size()' defined by the argument class

  • This returns 0 in other cases.

Example:

size(CODE)