Support is available for invoking a function from the script text of a Script or Script with Map Function, or from a JavaTM Function. This is achieved by using this method of FunctionHelper:
• |
fqId—Is the Reference ID of the function to invoke. It must not be null. |
• |
args—Are the arguments to pass to the function. |
• |
A FunctionInvocationException is thrown when there is an error invoking the function. |
For Script or Script with Map Functions, this method can be accessed via the functionHelper hidden parameter.
For Java Functions, the Java method for that function must have a parameter of type FunctionHelper, as previously described, so that the invoke method can be accessed via that parameter.
Example script that uses this functionality (where user.foglight.1 is a function that takes two integer inputs):
Support is available for invoking a query from the script text of a Script or Script with Map Function or from a JavaTM Function. This is achieved by using the method FunctionHelper.invokeQuery().
How this method can be accessed and used is the same as the FunctionHelper.invokeFunction() method used for invoking a function from a function (as described in the previous section).
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center