Types of Variables in TIBCO BusinessWorks

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.

  1. Global Variables
  2. Shared Variables
  3. 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:

  1.  Shared Variable
  2. 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.

 

Ajmal Abbasi

Ajmal Hussain Abbasi is Integration Consultant By Profession with 13+ years experience in Integration domain mainly with TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Cloud, TIBCO Flogo, TIBCO Mashery, TIBCO Spotfire, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in various sectors by using his skills in TIBCO Flogo, TIBCO API Management (Mashery), TCI, Tibco Designer, TIBCO Business Studio, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi has experience with MuleSoft ESB as well. Ajmal Abbasi is also experienced in the area of API Management particularly with WSO2 API management platforms. Ajmal Abbasi is also experienced in developing solutions using Core Java and J2EE Technologies. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn - YouTube

20 thoughts on “Types of Variables in TIBCO BusinessWorks

  1. Vijaykumar

    Could you help me how to connect to HP TANDEM using tibco business works i am dealing with an integration project

    Reply
  2. Priyanka

    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??

    Reply
  3. Ajmal Abbasi Post author

    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.

    Reply
  4. Senthilkumar periyakaruppan

    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.

    Reply
  5. Reddy

    Hi Sir,

    plz post the step by step procedure of all the variables which are using in tibco BW.

    Reply
    1. saikrishna

      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.

      Reply
  6. trishnaa

    Can we append the data in shared variables? if we can, can you please provide the example?

    Reply
    1. Sivasena

      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

      Reply
  7. praveen

    Hi,
    i am begginer of bw which variable is otherwise called as local variable

    Reply
  8. Roja

    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.

    Reply
  9. Lekshmi

    What is environment variables in Tibco?Where to configure and how to do it?

    Reply
  10. simran

    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.

    Reply
  11. govardhan b

    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?

    Reply

Leave a Reply to praveen Cancel reply

Your email address will not be published. Required fields are marked *