Working with Global Variables
Global variables provide an easy way to set defaults for use throughout your project. When the project is deployed, all occurrences of the global variable name are replaced with the provided global variable value or a deploy-time override.
For example, you could assign the value 7474 to the global variable RvDaemon. You can then use the variable in a Rendezvous Transport resource. At deploy time you can override the default value as needed.
Tip:
- The datatype of the global variable must match the datatype accepted in the field where you use it. If the global variable is of a different type, runtime errors result.
- An exception to the above allows flexibility in numeric fields: global variables used in numeric fields can be of any type, as long as the substituted value of the field is numeric.
- A project folder called defaultVars is available but not exposed in BusinessEvents Studio Explorer, so that you can share the global variables using source control software. It is not used for other purposes.
- Setting and Overriding Global Variables from a Project Library
- Adding and Managing Global Variables
In a new TIBCO BusinessEvents Studio project no global variables are predefined. When you import a project from an earlier version of TIBCO BusinessEvents, however, you see predefined global variables as well as any others defined in the project. - Add and Manage Global Variables
- Using Global Variables
- Global Variable Reference
- Overriding Global Variables at Deploy Time
You can override default values by setting global variable values in one of these ways, depending on how you will deploy: - Order of Precedence of Global Variable Overrides
Global variable values are selected at runtime using values set in the following ways, shown in order of precedence, highest to lowest:
Copyright © TIBCO Software Inc. All rights reserved.