In a dynamic Web project designed to deploy Stardust models to run in the Stardust Portal, create a model, e.g. ConfigVarDemoWeb. For detailed information on creating dynamic Web projects for usage with the Stardust Portal, please refer to the Rapid Application Development guide.
Proceed as follows:



Now we enter a condition transition to the transition from the first gateway to Activity Production Only:
"${Environment}" == "PRODUCTION";
To refer to the value of the variable, the variable name is escaped
as $"Environment".


This reference to the variable via the transition condition creates a configuration variable accordingly. The configuration variable and the reference are reflected in the Configuration Variables tab of the model property page. Open the model property page and switch to the Configuration Variables tab. In the References part, the transition and its condition referencing to our Environment variable are displayed.

Figure: Configuration Variable displayed in Model Properties
Add TEST as default value for the configuration variable. If the variable is not changed, the
model runs in test mode.

Figure: Add variable Environment.