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

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

Recommended Posts

Posted

Since I'm not a Java guru yet, here's a question,

 

Can and how do I keep variables and states etc. in my java (groovy) between FMP scripts etc.

 

Say I want to have an entire program running and that would communicate with FMP via script calls etc, how would I do that?

 

or ... its the environment totally destroyed at the end of the current script master call once control is passed back to FMP?

 

Charles

 

Posted

AFAIK the JVM is created on opening FMP with ScriptMAster installed and destroyed on exit

 

Any Groovy 'variables' you create during the script are available using SMGetVariable("var") until you run another function when they are destroyed - so you will need to set some FM variables for any kind of persistence.

BUT because the JVM is still alive you can put things into an Expando to store them (see posts from Todd Geist on his site on this)

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