Use a function: function calls

Using a function is known as calling a function in computer terminology. Because the service your function provides might need input information that is different at each call, you can supply it with parameters. Because it returns a value, a function call is simply another type of expression, similar to the arithmetic or Boolean expressions discussed earlier in guide. In fact, you can combine function calls and operators to create more complicated expressions.

Calling a function in an expression is as simple as quoting its name followed by the list of parameters enclosed between parenthesis. Parameters can be expressions and are separated with commas.

As any integration engine object, Custom Functions are referred to using either a fully-qualified name or a short name, shown as follows:

… myentity.commonstuff\calendar.IsLeapYear(%year) …
… commonstuff\calendar.IsLeapYear(%year) …
… IsLeapYear(%year) …

You have already seen examples of function calls previously in this guide:

(remainder(%year, 4) = 0) and not (remainder(%year, 100) = 0)

This is a call to the built-in function remainder that divides its two parameters and returns the remainder of this division.

Related Links