Setting Environment Variables
If you’re deploying multiple applications through a Shared Resources structure, then you shouldn’t set any properties in the project properties files, as there might potentially be conflicts between the various apps that share a domain. Instead, you can set environment variables over the scope of the deployed app, its domain and other apps under that domain.
The steps below explain how to set these environment variables in Studio. Note that these variables will only be used when deploying locally through Studio, when deploying your applications to Mule Standalone ESB, you must provide these variables through the command line instead.
Open the dropdown menu next to the play button and select Run Configurations.
Select the corresponding Run Configuration. If one does not exist for your project, you can create one via the Create New icon above.
Then pick the Environment tab, and add the variables you need by clicking the New button.
The environment variables you create are defined at domain level, and will affect all of the applications associated to that domain when deploying locally via Studio.