While developing processes in TIBCO designer, you often need variables to store some data elements for use at different activities. There are three types of variables available in TIBCO BW which you can use in your designer processes.
- Global Variables
- Shared Variables
- Process Variables
TIBCO Global variables allow you to specify constants that can be used throughout the project. The constants can be specified and changed while designing and testing your project. You can also specify different values for each deployment of your project.
E.g. you can specify a machine IP and Port as global variables so that they can be later changed at deployment time without changing code.
Shared variables allow you to specify data for use across multiple process instances. Because multiple process instances can access the same variable, you can also synchronize access across processes when setting or retrieving the shared variable.
There are two types of shared variables:
- Shared Variable
- Job Shared Variable
A Shared Variable resource allows you to share data across process instances. All process instances can read and update the data stored in a shared variable. This type of shared variable is useful if you wish to pass data across process instances or if you wish to make a common set of information available to all process instances.
A Job Shared Variable resource is similar to a Shared Variable, but its scope is limited to the current job. A copy of the variable is created for each new process instance. This type of shared variable is useful for passing data to and from sub-processes without creating an input or output schema for the called process.
Process variables allow you to access various data in your project. For example, there are predefined process variables containing the process ID, project name, and other information. You can also create user-defined process variables for containing process-specific data.
Process variables are data structures available to the activities in the process. Process variables are displayed in the Process Data panel of each activity’s Input tab.