December 5, 200718 yr I am attempting to use the fmpro.evaluate() function inside a class. I get a 'groovy.lang.MissingPropertyException: No such property: fmpro for class:' error. Do i need to import a package for it to work?
December 5, 200718 yr Hi, it sounds like your script references the 'fmpro' object as a class property instead of a global property. instead of calling myObject.fmpro.evaluate(...) try just calling fmpro.evaluate(...) Please paste the script you're evaluating in here.
December 23, 200718 yr Author Thanks for the reply. The problem was the scope of the global fmpro object. I got around it by setting the fmpro object to a static variable in my class. myClass.fmpro = fmpro myClass{ public static def fmpro; } Edited December 23, 200718 yr by Guest
Create an account or sign in to comment