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
Global 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
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.
Types of Shared Variables
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
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.
Could you help me how to connect to HP TANDEM using tibco business works i am dealing with an integration project
Hey.. This is regarding process variable.. When do we use process variables.. I can hv global variables or any variable defined and then set the value using mapper. Then y use process variables??
Process variables have process level scope and they consume memory only when respective process is running. If you have to store some data values which are not global in nature; i.e. you don’t need their values at global level, its better option to use process variables instead of global variables.
In short:
Global Variable – Static variable.
Process Variable – Auto or Local variable – Scope with in the Process Definition
Shared Variable – Static variable ( i.e. one instance or memory) – Scope is through out the project ; Behavior is static across the jobs
Job Shared Variable – Scope is through out the project ; Behavior is static with in the job.
Hi Sir,
plz post the step by step procedure of all the variables which are using in tibco BW.
Same wish sir.
I have a doubt that “Is process variable a shared resource”
Process variable is not a shared variables its scope is limited to the process level.
Process variables are
1. ProcessID
2.Process name
They contain the details about a process which is in running state.
Can we append the data in shared variables? if we can, can you please provide the example?
Where can I find global variables in TIBCO BW 6 ?
Hi Soumya,
You can find them under in ‘Module Descriptors > Module Properties’. Here again you have two tabs ‘System > Contains default GVs’ and ‘User > Here you can define your own GVs’
Regards,
Siva
kssivasenareddy@gmail.com
Thanks Siva
Hi,
i am begginer of bw which variable is otherwise called as local variable
Prcoess variables are the local variables.
Hi Ajmal,
I have a shared variable, three process are trying to access that shared variable, one is trying to set , one is trying to get and one more is trying to modify, how do we do that .
Could you please help me on that..
Regards
Roja.
Hi sir ,
Can we see where is process variable stored.
What is environment variables in Tibco?Where to configure and how to do it?
Hi Ajmal,
Can you please tell me what’s the exact difference between shared and job shared variable? its too confusing when to use shared and job shared variable.if possible with eg.
Hi Sir,
can we change the urls of the deployed services or shared resources in BW6.x?
do we have Global variables in BW6.x,like in BW5.x?
In BW6,we have application and module properties.