Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Setting and Overriding Global Variables from a Project Library

You can export global variables to a project library and import the library into other projects (see Working with Project Libraries).

When multiple global variables have the same name, one overrides the rest and is used in the project. The name, datatype, and default value of the overriding global variable are used. The following is the list of override order:

- If multiple project libraries contain a global variable with the same name, the one in the project library at the top of the Build Path list takes precedence. The global variable of the top-listed project library overrides the global variable of all other project libraries listed below it.
  The Build Path list is in sync with the pom.xml file. So, the global variable's priority is determined by its project library's position in the runtime pom.xml file.
- If a global variable in a local project shares a name with a global variable in a project library, then the local project's global variable takes priority and overrides the one in the project library.

The Global Variables view presents a merged list. A blue upward pointing arrow in the row for a global variable () indicates that this global variable overrides another global variable. The source of the global variable is shown in the Project Source column to the right of the arrow.

To see all global variables, including overridden ones, open the global variable editor and expand Project Dependencies and project libraries. Global variables from project libraries are not editable.

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.