Using Global Variables

To Use Global Variables in TIBCO BusinessEvents Studio Project Fields

To use a global variable as the value for a project setting, drag it from the list of variables into the text box for the setting, or enter it manually. Use the following syntax:

%%Variable_Group/Variable_Name%%

You must include the global variable group hierarchy, if one exists.

For example, to use a global variable in a File Path field, you might enter the following:

%%filePathVars/certificateFilePath%%

To Use Global Variables in the Rule Editor

To use a global variable in the rule editor, use one of the System.getGlobalVariableAs* functions. For example:

System.getGlobalVariableAsString("myvars/Hostname", "Localhost")

Where, myvars/Hostname is the name of the variable group and variable, and Localhost is an optional literal value to use if the variable is not found.

To Use Global Variables in Debugger

To use a global variable in Debugger, add it as a VM argument. Prefix the variable with -V, as shown:

-V Variable_Group/Variable_Name=