Skip to main content
Skip table of contents

Managing Global Variables for Containerized xUML Services

This feature is only available in a Kubernetes setup.

Administrators can manage the settings of an xUML service in section Configuration in the service details view. It is also possible to define global variables. This allows to use the same setting value in various - or all - xUML services of your PAS installation.

If you want to create or manage global variables, click Global Variables in the navigation bar:

open_global_variables.png

Overview on the Global Variables View

The global variables view consists of two sections:

(1) Navigation Bar: From the navigation bar you can...

  • ... filter the list of global variables. Enter your search term in the filter field, it is applied to the whole content of the global variables' list.

  • … add a new global variable.

  • ... change the display of the global variables list. You can hide the columns Description and Used In. By default, both columns are shown.

  • ... see how many entries you have just edited.

(2) Global Variables List: The list shows all available global variables. Use the list to...

  • ... edit the global variables.

  • ... delete the global variables.

(3) History Log: The list shows all changes including the date and time of the change and the name of the user who did the change. Use the list to…

  • … inspect the history logs.

global_variables_overview.png

Global PAS Variables

Every PAS installation comes with some global standard variables. These variables are ready to use, but they cannot be adapted or deleted. The following standard variables are provided:

Global PAS Variable

Description

PASGlobalKeycloakBasePath

Provides the base path added to the Keycloak host to connect to your realm.

PASGlobalKeycloakDefaultXUMLClientID

Provides the default Keycloak Client-ID used in the xUML services.

PASGlobalKeycloakHost

Provides the hostname of the Identitiy Management (Keycloak) used in PAS.

PASGlobalKeycloakURL

Provides the URL of the Identitiy Management (Keycloak) used in PAS.

PASGlobalMongoDBReplicaSet

Provides the name of the replica set used in the MongoDB of PAS.

Creating a Global Variable

Click Add New Variable to create a new global variable:

add_new_variable.png

In the pop-up, enter the necessary content, then click Apply to create the global variable:

apply_new_variable.png

Value

Description

Name

Enter a name for your global variable. Variable names must be unique. If a variable name already exists, you will get a corresponding error message.

Expert Advice

Define a standard notation before creating your first global variable.
As a best practice, we recommend using upper camel case, e.g. MyGlobalVariable.

Type

Select a type for your variable. Available types are:

  • string

  • number

  • boolean

  • password

  • datetime

Value

Enter the value of your global variable.

Description

Enter a meaningful description for your global variable.

Editing a Global Variable

You can adjust value and description of a created global variable at any time. Edit the content directly in the global variables' list. Save is only enabled when changes have been made:

save_variable_changes.png

The counter on top right indicates if and how many changes have been made:

number_of_edited_variables.png

Click Save to open the Manage Variables dialog. It shows all changes you have just made. The old and the new value are displayed so that you can check your changes again.

New values are only applied after a service restart. If the variable is already in use, you have the option of restarting all - or selected - services directly. Select the services you want to restart in the displayed list:

multiple_variables_change.png

Please note: If you deselect the automatic restart for some services at this point, you will not receive any further notification later that these services need to be restarted manually.

Click Save to save your changes and restart the selected services. You can edit several variables at once. All changes will be displayed in the Manage Variables dialog:

multiple_variables_change.png

If you click Cancel to abort the action, the changed content is still displayed in the list. If you leave the list without saving, the old values will be shown when you reopen the global variables' list the next time.

Deleting a Global Variable

To remove a global variable, use option Delete:

delete_variable.png

Confirm the security prompt in the pop-up window to delete the variable from the list:

variable_deletion_confirmation.png

You can only delete unused global variables. If a global variable is still in use, the option is not available:

variable_in_use_no_deletion.png

Either detach the global variable from the service (by defining a temporary new service-specific variable) or delete the service.

Every PAS installation provides some global standard variables. These variables are read-only and cannot be deleted:

read_only_standard_variables.png

Inspecting the Global Variables History Log

Below the the global variables view, a history log is displayed showing the date and time when a user has made changes to a global variable. The global variables history log is a read-only view that supports users to keep track of all changes that have been made to the global variables:

Use the filter field to search for a global variable change. The content of the filter field is applied to column Action:

global_variables_history_fulltext_filter.png

Open the Extended filter to display the extended filter options:

  • Action

  • User

  • Reset Filter

If a filter is applied, the extended filter image changes:

global_variables_history_extended_filter_applied.png

Use option Reset Filter in the main filter window to reset all selected filters. In the filter option window, you can also reset the selection:

global_variables_history_reset_filter.png
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.