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
- Click on the
icon and select Project Configuration from the dropdown menu.
- The Project Configuration Variables page is displayed.
![](https://files.readme.io/c623afe-Project_Configuration_Variables_1.png)
- Click on + Add variable. The Variable Name, Type and Value fields are displayed.
![](https://files.readme.io/236ae5e-Project_Configuration_Variables_2.png)
- Enter the desired Variable Name.
- Select the variable Type from the list.
![](https://files.readme.io/48ff997-Project_Configuration_Variables_Type.png)
- Enter the variable Value. If it exists and a value is not assigned, the default value is used. For example:
![](https://files.readme.io/2100ac5-Project_Configuration_Variables_VAR1.png)
- To save the new variable, click on the
icon. To cancel, click on the
icon.
- After saving the new variable, it is displayed in the Project Configuration Variables table:
![](https://files.readme.io/de9bb6d-Project_Configuration_Variables_VAR1_saved.png)
- 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.
- To continue adding more variables click on + Add variable. For example, after adding more variables, the Project Configuration Variables table looks like:
![](https://files.readme.io/5295597-Project_Configuration_Variables_3.png)
Set Variable
The user can set a value for a field, using either set Static Value or Set Project Variable.
![](https://files.readme.io/ec744ef-Set_field_Value.png)
- Press Set Value. A dropdown menu appears that enables selecting the Project Variable to set.
![](https://files.readme.io/57e9202-Set_field_Value-2.png)
- The user can also set a static value for the variable by pressing Set Static Value.
![](https://files.readme.io/3cd8f7d-Set_field_Value-3.png)
- The Static Value window is displayed.
![](https://files.readme.io/d0098fa-Set_field_Value-4.png)
- 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.
-
To add an expression, right-click on the
icon, and select Add an Expression.
-
The Set Expression window opens:
![](https://files.readme.io/cd57a5e-Set_Expression.png)
-
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.
-
To edit an existing expression, right-click on the
icon, and select Edit Expression.
-
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:
- Environment - if the variable is configured in the Project Configuration Variables table
- Yaml - if the variable is configured in the yaml file and not in the Project Configuration Variables table
- 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}
Updated 4 months ago