Tenant and Project Variables

About Tenant and Project Variables

This feature allows you to create, update, delete, download, or upload tenant-level variables or project-level variables that can be used across Flow services in a mapset.

Pipeline substitution variables in Flow service pipelines are only available within the current pipeline and cannot be reused across Flow services or accounts. On the other hand, tenant and project level variables provide the flexibility to configure variables at either project level or tenant level for use across projects. This means that if a variable’s value is changed at one point, it will be available for use in all projects where the variable is used.

Flow services can now use either of the following variable types:

However, the execution of a Flow service involves a search for variables in a specific order.

  1. First, IBM webMethods Integration looks for variables in Pipeline substitution variables.

  2. If these are not found, it then checks Project-level variables.

  3. Finally, if neither pipeline nor project variables contain the variable, the system searches for it in Tenant-level variables.

It is important to note that this order of search applies during Flow service execution.

Note
This feature is not available by default. Contact IBM Global support to enable the feature.

Potential use cases of tenant and project level variables

You can use this feature for account configuration. In such use cases, values like passwords or host names are configured once in these variables and reused across accounts and Flow services.

Best practices

To achieve optimal results with tenant and project level variables, it is recommended to follow these best practices:

  1. To use project or tenant variables when publishing, deploying, exporting, or importing into another tenant, they must be configurable variables. Add dependency on these variables in the target Flow service or account to make them configurable.

  2. Cloning a Flow service across projects, does not copy the project variables to the target project. Configure these project variables in the target project, in such circumstances.

  3. Project variables can only be utilized with the Salesforce connector.

Adding project variables?

Note
This feature is not available by default. Contact IBM Global support to enable the feature.
  1. Navigate to the project in which you want to add a variable, click Configurations, General, and then select Variables.

  2. A list of existing variables appears. To add a new variable, click New Variables.

  3. In the pop-up window that appears, enter the following details:

    • Name: Provide a suitable name for the variable.

    • Value: Provide a value for the variable.

    You can optionally mark the specified variable as a password field, thereby hiding the value of the variable.

Using project variables in a flow

  1. Open any Flow service.

  2. Edit an existing pipeline.

  3. Right-click on your variable, and click Set value.

  4. Enable Perform variable substitution.

  5. Click on the Substitution variables icon.

  6. Select the project variable you added in the previous step.

Note
If a project variable is used using the set value operation in a flow service and the flow is exported to a different project, you must remove the previous project variable and run the set value operation for the variable existing in the current project. Ensure that correct variable is being referenced in the new project, maintaining consistency and accuracy across projects.

Using project variables in a connector account

  1. Open Connectors tab.

  2. Click New account on an existing predefined connector.

  3. Select Credentials in the Authorization Type drop-down.

  4. Select the checkbox Substitute project variables on applicable fields.

  5. Type your variable name in between two % symbols. For example, %Var1%. The value of this variable is substituted during run-time.

    If a variable does not exist, it is evaluated as a string. For example, if Var1 is not defined as a variable, then the usage of %Var1% substitution will result in %Var1% appearing in the output.

Note
Changing the value of a project variable used in a connector account takes effect only after disabling and re-enabling the connector account. This applies to multiple run-time instances of Integration Server as well. For example, if you have two Integration Servers associated with a connector account, disable and re-enable this connector account to acquire the new variable value for both Integration Servers. In case you do not disable and re-enable the connector account, then except for one Integration Server the rest run the account with the latest variable value.