Jump to content
Server Maintenance This Week. ×

Using fmpro.evaluate() inside a java class


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

Recommended Posts

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.

Link to comment
Share on other sites

  • 3 weeks later...

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
Link to comment
Share on other sites

This topic is 5976 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.