Use a function rule to define a Java function that is accessed through rule resolution. You can reference function rules in expressions and directly in Java. Each function belongs to a library (Rule-Utility-Library rule type), indicated by the first key part.
Note: Users can also create function alias rules to create complex SQL expressions that may be needed in Report Definition rules. See About Function Alias rules for more information about SQL function aliases.
The following forms call a function:
@(RuleSet:libraryname).functionname(arg1, arg2... argn)
@LibraryName.FunctionName(arg1, arg2... argn)
@FunctionName(arg1, arg2... argn)
myruleset_mygeolibrary.MyGeographicFunction(Latitude, Longitude);
See Methods for calling a function for more information.
Use the Records Explorer to list all function rules available to you.
Function rules are part of the Technical category. A function rule is an instance of the Rule-Utility-Function rule type.
Function rule resolution is applied at runtime and is based on rule status. When searching for instances of this rule type, the system filters candidate rules based on a requestor's ruleset list of rulesets and versions
Time-qualified resolution features are not available for this rule type. Additionally, the class hierarchy is not searched.