2022.2

Table Of Contents
To refer to a global variable, for example in a variable task property (see: "About Tasks" on page286),
use its name preceded by "global." and surrounded by curly brackets, for example: %{glob-
al.myGlobalVariable}.
Global variables are generally used to keep information that applies to multiple locations but needs to
be changed easily. For example, a lot of users use them to set a server's IP, a printer name, or folder
location that is used by multiple processes. This is useful when moving the configuration file to another
installation of the Workflow tools where this information is different, or to quickly modify specific inform-
ation if something changes on the server. You can have as many global variables as you want in any
given configuration.
Adding a global variable
To add a global variable from the Configuration Components pane:
1. Right-Click on Global Variables.
2. Click Insert, then Insert Global Variable.
The new variable will appear as GlobalVar or GlobalVarX (the name is automatically incre-
mented).
To add a global variable from the Ribbon:
1. Click on the Home tab of the PlanetPress Workflow Ribbon:
2. Click Global Variable in the Variables group.
The new variable will appear as GlobalVar or GlobalVarX (the name is automatically incre-
mented).
To set the value of a global variable from the Configuration Components pane:
1. Double-click on the global variable in the Configuration Components pane. (Right-clicking then
clicking Properties also works.)
2. Enter the new value for your global variable.
3. Click OK to save the new value.
Deleting a variable
l
Right-click on the variable name in the Configuration Components pane and click Delete.
Note: Deleting a variable does not delete any reference to it. In both the case where a script
refers to a variable and it is renamed, and the case of deleting a variable, any task or script that
refers to it will cease to function and will generate an error.
Page 244