Types of Variables in TIBCO BusinessWorks

By | December 4, 2013

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.

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 a TIBCO Consultant By Profession with more than 6 years experience in TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Spotfire, TIBCO BE, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in Telecom sector by using his skills in Tibco Designer, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc. Ajmal Abbasi is also experienced in developing solutions using Oracle PL/Sql, Linux and Java. You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn

13 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

Leave a Reply

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