7.4

Table Of Contents
Convert a Branch to a Subprocess
To allow for maximum flexibility and backward compatibility with the subprocess feature, the Convert to subprocess
option lets users transform existing processes easily. This option is available whenever a Branch task is selected; right-click-
ing on it will display the contextual menu, which holds the Convert to subprocess option.
Selecting this option automatically creates a new subprocess, takes the branch and all of its children tasks and inserts it in the
new subprocess, including the branch task itself. In the main process, the branch is removed and replaced with a GoSub
action task referring to the newly created subprocess.
Note: The Branch tasks options Backup job file, Backup job information and Backup emulation, are also auto-
matically passed to the Subprocess, which means that, if the subprocess needs to use a different emulation than the calling
process, a Change Emulation task is required.
If any task converted into a subprocess was previously using local variables, these variables must be removed or transferred
to global variables or job information to be usable in the newly created subprocess.
Manipulate Global Variables
For information about Local Variables see Local Variables.
Global Variables are set at the level of the Configuration file and are shared between all processes and tasks. Global variables
can be used anywhere that accepts variables by using it's name preceded by "global."and surrounded by curly brackets (for
example:%{global.myGlobalVariable}).
Global variables are generally used to keep information that applies to multiple locations but need to be changed easily. For
example, a lot of uses 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 information if something changes on the server. You can have as many global variable as you want
in any given configuration.
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 incremented).
To add a global variable from the Ribbon:
1. Click on the Home tab of the PlanetPress Suite Ribbon
2. Click Global Variable in the Variables group.
The new variable will appear as GlobalVar or GlobalVarX (the name is automatically incremented).
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.
Shared tasks
These procedures can be used on both local and global variables.
To delete a variable
The PlanetPress Suite Workflow Tools Configuration Program