Global Variables (Magic xpi 3.x)
Global variables are available to all flows in the same project that share the same memory address. Changes made to a global variable, in any flow, affect the variable in all flows where it is used. These variables are used in the same way as flow variables.
You can use global variables to manage flow logic and data transfer between components for every flow in a project.
Best Practices
|
|
Initialize global variables with values saved as environment variables at the beginning of your project.
|
|
|
Use global variables instead of environment variables throughout the project for better performance.
|
|
|
|
|
G.sys.ServerInstance
|
Use this variable to determine what server instance is invoked for a specific flow or step in a flow. For information on using server instances, see Server Instances.
|
Numeric
|
5.0
|
G.sys.ComponentLogging
|
Use this variable to dynamically control the component logging. This variable overrides the C.sys.ContextLogging variable setting. When both variables are set to True (the default), logging behaves as defined in the component's Logging tab.
|
Boolean
|
1
|
To create global variables:
-
If you want to define global variables for your project, select Variables from the Project menu. This opens the Project Variables dialog box. Select the Global Variable tab.
-
If you want to define global variables for a specific flow, select Variables from the Flow menu or press Ctrl+L. This opens the Variables for Flow dialog box. Select the Global Variable tab.
-
Click New to bring cursor focus to the Name field of the first empty variable entry in the list.
-
Define the variable's properties. For a full description of these properties, click here.
-
When you have entered the relevant properties, click OK to add the variable and to close the dialog box.
-
You can remove variables by clicking Delete.
-
Clicking Cancel closes the dialog box without saving your newly added variables.
Flow Variables
Business Process Variables
Context Variables