Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6191 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

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.

  • 3 weeks later...
Posted (edited)

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 by Guest

This topic is 6191 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.