Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# 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=`

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.