Functions
A function performs some calculation and returns a result. The result of a function is a constant. There are a number of built-in functions that Aware IM supports. New functions can be plugged in as well (see “Aware IM Programmer’s Referefence”). A function may or may not have parameters. Parameters of a function must be either attributes or calculationswith attributes. If a function does not have parameters then it can be referred to by name only. If a function has parameters, they are listed after the function name and enclosed in brackets. Parameters are separated by the comma symbol. For example:
- CURRENT_DATE - function with no parameters.
- LENGTH (Customer.Name) – function with one parameter.
- MONTH_DIFFERENCE (Account.OpeningDate, Account.ClosingDate) – function with two parameters.
The complete list of built-in functions supported by Aware IM is provided in the Functions section.