Context Information Available in a Global Function

In global functions, your Groovy script can reference only the following elements in the adf namespace:

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.