Back Forward About Function rules

SysAdmin category
New Parameters   Java     Alias   
Imports & Exceptions History   More...

Purpose

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.

Calling functions in expressions

Use the following syntax to call a function in an expression. In the syntax shown, square brackets indicate that a value is optional:

@[ ( [RuleSetName:] Libraryname )].functionname([functionparameters])

For example, you can use the following to compute a value:

@(MyRuleSet:MyGeoLibrary).MyGeographicFunction( Latitude, Longitude)

Calling functions in Java

From within Java code, use only lowercase for the RuleSet Name and library name, and exact case for the function name. Replace any dash characters with an underscore character.

myruleset_mygeolibrary.MyGeographicFunction(Latitude, Longitude);

Access

Use the Rules by Type Explorer to list all function rules available to you.

Category

Function rules are part of the Technical category. A function rule is an instance of the Rule-Utility-Function rule type.

Related topics Functions in expressions
Standard rules Atlas — Standard functions

zzz Technical category
Help System home pageHome