Context Information Available in a Global Function
In global functions, your Groovy script can reference only the following elements in the adf namespace:
-
adf.context
, as described in Referencing Information About the Current User.. -
adf.util
, to invoke other global functions as described in the section above. -
adf.webServices
, to invoke registered web services as described in Calling Web Service Methods in Groovy.
In particular, other adf
-prefixed elements like
adf.source
to reference the current object cannot be directly
referenced in a global function's script. You need to reference them in the calling
script and pass them in as a parameter to the global function. See Passing the Current Object to a Global Function for an example.