About Function rules |
New | Parameters | Java | Alias |
Imports & Exceptions | History | More... |
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.
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)
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);
Use the Rules by Type 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.
Functions
in expressions
|
|
Atlas — Standard functions |