Using Global Variables with Connectors

You can create, update, or delete project-level global variables to configure values (such as passwords or host names) once and then reuse them in flow services, workflows and deploy anywhere flow services. Global variables allow you to avoid hard coding sensitive or repeated values, while being able to update the configured values once and all connections that use that value will automatically pick up the new value. You can use global variables with the Database, SAP ERP, IBM MQ, and Kafka connectors.

Before you begin

Important:

The following limitations apply to using global variables in the Deploy Anywhere flow service:

Cloud Designtime is supported, but editing the connection using global variables is not available.

The self-managed runtime is visible and supported in the user interface, but it cannot be tested or enabled.

The self-managed runtime does not allow using global variables when creating or editing.

About this task

To use global variables with connectors:

Procedure

  1. Add a new, or edit an existing connection for flow services, workflows, or deploy anywhere flow services.
  2. Select an input field (except boolean or drop-down fields).
  3. Do one of the following:
    • Click the Toggle button and select a configured global variable from the dropdown.
    • Type %, followed by the variable name. The drop-down filters the matching variable names for selection.
    Note:

    You can also use a combination of hardcoded values and variables.

  4. Enable the connection.
    Note: When you change the value of a variable, the connection needs to be disabled and then re-enabled for your changes to take effect.