Add and Manage Global Variables
Groups are used for organizing variables. Variable groups are especially useful if multiple developers share a project using a version control system. When referencing a variable that is in a group, use the complete path, for example
%%mygroup/mysubgroup/myvariable%%
. Since the complete path is used, the name of a variable in a group can be the same as the name of a variable in a different group.
- Procedure
- Open the project in TIBCO BusinessEvents Studio.
- Open
Global Variables Editor in one of the following ways:
From the toolbar, click the Global Variables Editor button.From the top menus, select.
You see the global variables editor listing the variables available, if any.
- Perform any of the following (for details about the Global Variable fields, see
Global Variable Reference):
To add a variable, click Add Variable and complete the fields.To edit a variable, select the variable and update the fields.To add a variable group, click Add Group.To add a variable to a group, first select a group, then click Add Variable.To remove a variable or a group, highlight it and click Remove.Note: You must add at least one variable to a group, or the group will not be saved. If you delete all global variables in a global variable group, the group itself is also automatically deleted.
- Save the resource. Groups and references to the
defaultVars.substvar
file appear in the defaultVars project folder.