Similar to queries, Functions are called as a binding, in this case the Function binding. For more information, see Bindings.
From within a JavaTM, Script or a Script with Map Function, a special FunctionHelper class is available for accessing additional information. See the javadoc for that class for more details on what information is available.
For Java Functions, FunctionHelper objects are passed as a parameter to the specified Java method.
For Script or Script with Map Functions, the FunctionHelper class is accessible through the reserved script parameter, functionHelper. To make things easier, the argument values of function parameters can also be accessed by directly referencing the name of the parameter. The reserved script parameters are also available:
• |
resourceBundle: The Java Resource Bundle for the current locale with strings loaded from the module’s file strings.properties (uploaded using the Files tab available under Configuration > Definitions). |
• |
specificTimeRange: The current SpecificTimeRange. This value should always be passed when you access property values of any time-sensitive data object. For example: |
For Java Functions, these are available via the corresponding getter methods of the FunctionHelper parameter. The table shows the methods in FunctionHelper:
createDataObject( |
||
Returns a Map containing the argument values for the function's parameters. | ||
Returns the ResourceBundle for the current Locale, loaded from the strings.properties file in the module to which the function belongs. | ||
Returns a SpecificTimeRange whose start/end dates are computed based on the TimeRange when the function was invoked. | ||
Invokes a function. Used for invoking a function within another function. | ||
© ALL RIGHTS RESERVED. Términos de uso Privacidad Cookie Preference Center