Unable to use FDMEE API within Jython functions
Hi All,
I want to tidy up some FDMEE custom scripts using Jython functions, but I can't get the API to work within functions. As a simple example, I have the following script:
fdmAPI.logInfo('API call')
def myFunction():
# global fdmAPI
fdmAPI.logInfo('API call within function')
myFunction()
If I run this, the first call works fine, but the second call results in the following error:
line 5, in myFunction
fdmAPI.logInfo('API call within function')
NameError: global name 'fdmAPI' is not defined
I've tried declaring the API as global within the function (see the commented out line in the script above) but that makes no difference. The product version is 11.1.2.4.0.79.