Global Variables
Global variables provide an easy way to set defaults for use throughout your project. There are several ways in which they can be used:
-
Define a variable using TIBCO Designer, then override the value for individual applications at deployment time using TIBCO Administrator. You can also override values for predefined variables, unless the GUI does not allow you to make them settable later.
-
Predefine a variable using TIBCO Designer, then override the value for individual services (for example, publication service or ActiveMatrix BusinessWorks process) at deployment time using TIBCO Administrator. The values you specify are then used at runtime.
You can also override values for predefined variables, unless the GUI does not allow you to make them settable later.
-
Predefine the variable using TIBCO Designer, then override it on the command line.
For example, you could assign the value 7474 to the predefined global variable RvDaemon
. You can then use the variable in different sessions in your adapter. If you wish to change the TIBCO Rendezvous daemon for your adapter, you can globally set it to a different value or override it from the command line.
When you want to use the global variable in the fields of a resource, enter the variable name surrounded by %%
on both sides. Some fields in the configuration panel, such as user name and password fields, allow you to drag and drop global variables into the field.
When the project is deployed and the configured components run, all occurrences of the global variable name are replaced with the global variable value. For example, a global variable named RvServiceTest
with a value of 7800
would be replaced with 7800
.