How to use Global Variables - imona/tutorial GitHub Wiki
To get a HashMap that can be used as a shared resource inside your app, You can use the following code:
var variables = systemUtils().getGlobalVariables();
Then you can add a value to the HashMap like the following code:
variables.put("test","value");
You can get a value from the map using
var value = variables.get("test");
You can clear all values using:
variables.clear();