I think I'm not making my question clear somehow. I understand what you are saying. Process_Globals are accessible by all activities. That's kinda my point. It seems then, that if I follow best practice which is to use the Starter service for Process_Globals, then Activity Process_Globals has no purpose?
Joan
Confused. If something declared in an activity process global is available to other activities, doesn't that mean they are public?
Sorry to be so dense, but something's not clicking for me here.
Joan
1) you might declare an activity variable in its Process_Globals as Private
2) in the Starter, declare and initialize variables that will be used by many modules
3) in the Activity Process_Globas declare variable that you will use as they were properties of the Activity, "parameters" of the Activity
I also use the Starter module to declare the variables that I want to save/retrieve (SaveSettings() and GetSettings()) even if they are only used in a single module or activity (not necessarily Starter).
That way, I have a single set of SaveSettings() and GetSettings() routines in the starter module and it saves everything for all activities (I call it before leaving any activity).
It may not be the best way or the only way but I have found it generally easier for me to manage that way.
I also use the Starter module to declare the variables that I want to save/retrieve (SaveSettings() and GetSettings()) even if they are only used in a single module or activity (not necessarily Starter).
That way, I have a single set of SaveSettings() and GetSettings() routines in the starter module and it saves everything for all activities (I call it before leaving any activity).
It may not be the best way or the only way but I have found it generally easier for me to manage that way.
If the data is strictly related to an Activity, you should read-write them in Activity_Resume and Activity_Pause (or, better, call the routine to read-write from these event routines), so that you can "more" easily reuse that Activity in other projects.
If the data is strictly related to an Activity, you should read-write them in Activity_Resume and Activity_Pause (or, better, call the routine to read-write from these event routines), so that you can "more" easily reuse that Activity in other projects.