Project Configuration Variables

Project Configuration Variables allow the user the ability to configure a variable for substitution in a project. Note that these variables are configuration variables and not input variables.

The Project Configuration option is available in the Projects screen.

Working with Project Configuration Variables

  1. Click on the icon and select Project Configuration from the dropdown menu.
  2. The Project Configuration Variables page is displayed.
  1. Click on + Add variable. The Variable Name, Type and Value fields are displayed.
  1. Enter the desired Variable Name.
  2. Select the variable Type from the list.
  1. Enter the variable Value. If it exists and a value is not assigned, the default value is used. For example:
  1. To save the new variable, click on the icon. To cancel, click on the icon.
  2. After saving the new variable, it is displayed in the Project Configuration Variables table:
  1. To edit the variable, click on the icon. To delete the variable (if it has not been used in the Project), click on the icon.
  2. To continue adding more variables click on + Add variable. For example, after adding more variables, the Project Configuration Variables table looks like:

Set Variable

The user can set a value for a field, using either set Static Value or Set Project Variable.

  1. Press Set Value. A dropdown menu appears that enables selecting the Project Variable to set.
  1. The user can also set a static value for the variable by pressing Set Static Value.
  1. The Static Value window is displayed.
  1. Enter the Static Value and click on Set.

Edit Static Value and Remove Value buttons are also available.

Add Expression

You can add, edit and delete expressions.

  1. To add an expression, right-click on the icon, and select Add an Expression.

  2. The Set Expression window opens:

  1. Insert the expression logic between the brackets and click on Set Expression. You can use Project Configuration Variables in the expression, as in the example below.

  2. To edit an existing expression, right-click on the icon, and select Edit Expression.

  3. To delete an existing expression, right-click on the icon, and select Remove Expression.

Assigning Project Configuration Variables

Project Configuration Variables may be assigned in:

  • Test flow - values are assigned on test
  • Deployment - values are assigned at runtime
  • Generated services - values are assigned at runtime

Variable substitution hierarchy

The variables are substituted in the following order preference:

  1. Environment - if the variable is configured in the Project Configuration Variables table
  2. Yaml - if the variable is configured in the yaml file and not in the Project Configuration Variables table
  3. Default - if the variable is not configured in the Project Configuration Variables table and does not exist in the yaml file, the default value of the variable is used

Note: The local variable name should be as follows OL_{Project Variable Name}