readEnvironmentVariables Step

Use this step to retrieve an environment variable from the application server.

Last published at: January 1st, 2026

Description:

This step retrieves an environment variable from the application server.

 

Inputs

  • name – provide a step name
  • envvarmappings – environmental variable mappings 
 

 

Returns

  • True – step executed successfully
  • False – step failed to execute 
 

 

Usage:

 

 

Example:

Let’s build and execute the "readEnvironmentVariablesDef" example.          

  • Create a new definition called “readEnvironmentVariablesDef” and open the definition in designer mode. 
  • Drag a “readEnvironmentVariables” step to the canvas. 
  • Connect the dots between the “Start” and “readEnvironmentVariables” steps, as shown above. 
  • Define a variable or a global to store the result. 
  • Click the "readEnvironmentVariables" step to configure its "Required" properties. Provide a name for the step. Click the button to configure environmental variable mappings, then click Save. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • Click the button to configure environment variable mappings. A pop-up window appears for configuration. Click the Add Row button to insert an empty row. Enter the environment variable and its value. Click the Save button. You may add multiple environment variables using the Add Row button. 

 

  • The “Logging” configuration is necessary for documentation and also measures workflow progress and percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a new instance, and execute it. Render the process instance. Click the “readEnvironmentVariables” process step to view its properties. The step should retrieve the environment variable value defined in the Windows system (previously set by the “setEnvironmentVariables” process step).

 

 

Create or modify environment variables on Windows 10:

  • On the Windows taskbar, right-click the Windows icon and select System.
  • In the Settings window, under Related Settings, click Advanced System Settings.

 

  • On the Advanced tab, click Environment Variables to view the list of variables and their values.

 

Definition Sample:

You may download the sample definition(s) from the link here and later import them (drag-and-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.

Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after the import. Then, save the definition to confirm the changes.

Click here to download the sample file.