Skip to content

Environment Variables

assimbly edited this page May 17, 2022 · 4 revisions

What are environment variables?

Environment variables are placeholders for a specific environment. The variable is set for each environment differently.

Use case

The configuration of endpoints are mostly specific for a particular environment. For example send a message to a testserver. The configuration cannot be copied as for production another server is used. To avoid this, variables can be set specific for an environment. In this way each environment dev, test, acceptance and production will all have the same flow configuration.

How to configure Environment Variables?

  1. Go to Settings --> Environment Variables
  2. Click "Create Environment Variable"
  3. Set the key and variable

For example there is an application name "myApp" which has the following url: "testserver:8080". We set the key as "myAppUrl" and value to "testserver:8080"

CreateEnvironmentVariables

  1. Save the Environment Variable

Now the variable can be use in the flow configuration as follows: @{myAppUrl}.

UsingEnvironmentVariables

This variable will be replaced by the value testserver:8080 during start of the flow. You can export the configuration of test and import it in the production environment where you have the same key, but a different value:

key: myAppUrl value: prodserver:8090

In the production environment this production url will then be used.

Note: When you import a configuration as XML into another envinronment (stage), only the keys of environment variables keys are imported not the values.

Clone this wiki locally