Rule Function Terms Overview

Rule functions terms are the heart of most rule definitions within an application. While there are situations where a rule may be defined to contain a single rule term that returns the value of a global or other such data definition type, most rules are more complex than this and consist of multiple function calls.

Most rule functions take one or more arguments, each of which contains a data value for the function. When the function is evaluated, these data values are processed in some manner. The result of this processing is a single return value that is passed to the function’s caller. A function will always provide the caller with a value in the data type the caller asks for. Not all function support all data types for their return values. If a data type is not one supported by the function, that function will return the null-equivalent of that data type.

There are over a hundred different functions available for a rule definition. These are organized into Function Categories. These categories denote the general types of behavior for the functions. The rule editor presents the functions to the developer organized into one of these categories.

Note that the function categories do not directly impact where a function can be used, or which rules can use a given function. The categories are an organizational aid built into the rule editor to aid the developer in locating the rule function that is needed.