Book a demo

← Documentation

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 Working with Project Configuration Variables screenshot icon and select Project Configuration from the dropdown menu.
  2. The Project Configuration Variables page is displayed.

Working with Project Configuration Variables screenshot

  1. Click on + Add variable. The Variable Name, Type and Value fields are displayed.

Working with Project Configuration Variables screenshot

  1. Enter the desired Variable Name.
  2. Select the variable Type from the list.

Working with Project Configuration Variables screenshot

  1. Enter the variable Value. If it exists and a value is not assigned, the default value is used. For example:

Working with Project Configuration Variables screenshot

  1. To save the new variable, click on the Working with Project Configuration Variables screenshot icon. To cancel, click on the Working with Project Configuration Variables screenshot icon.
  2. After saving the new variable, it is displayed in the Project Configuration Variables table:

Working with Project Configuration Variables screenshot

  1. To edit the variable, click on the Working with Project Configuration Variables screenshot icon. To delete the variable (if it has not been used in the Project), click on the Working with Project Configuration Variables screenshot icon.
  2. To continue adding more variables click on + Add variable. For example, after adding more variables, the Project Configuration Variables table looks like:

Working with Project Configuration Variables screenshot

Set Variable

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

Set Variable screenshot

  1. Press Set Value. A dropdown menu appears that enables selecting the Project Variable to set.

Set Variable screenshot

  1. The user can also set a static value for the variable by pressing Set Static Value.

Set Variable screenshot

  1. The Static Value window is displayed.

Set Variable screenshot

  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 Add Expression screenshot icon, and select Add an Expression.

    Add Expression screenshot

  2. The Set Expression window opens:

Add Expression screenshot

  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.

    Add Expression screenshot

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

  3. To delete an existing expression, right-click on the Add Expression screenshot 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}

Read more

Tell us about yourself

You've been browsing the catalog. Leave your details to keep exploring.

Privacy policy