updateGlobals Step

Use this step to update workflow globals with user defined values.

Last published at: March 26th, 2025

Description:

This step updates workflow globals with user-defined values.

 

Inputs

  • updateGlobals – Update multiple globals
 

 

Returns

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

 

Usage:

 

 

Example:

Let’s build and execute the “updateGlobalDef” example.          

  • Create a new definition called “updateGlobalDef”
  • Select the definition and click the “design” button
  • Drag the “updateGlobals” step to the canvas
  • Connect the Start and the “updateGlobals” step as shown above
  • Define a global to store the result
  • Click the "updateGlobals" step to configure its "Required" properties. Provide a name to the step. 

 

  • Click the "updateGlobals" step to configure its "Optional" properties. Click on the button to update multiple globals with values. Configure “Yes” if the value to be computed is an expression.

 

  • Click the "updateGlobal" step to configure its "Optional" properties. Click the button to configure multiple globals and values. A popup window is displayed for configuration. Click the Add Row button to insert an empty row. Provide the global name and value. You may insert multiple globals using the Add Row button. Click the Save button. Configure “Yes” if the value to be computed is an expression. Note: Use either single global references or multiple ones, not both.  

 

  • Expression Builder Utility. Click inside the textbox. Use the keyboard shortcut ALT + E to invoke the expression builder. This utility shall enable the building and validation of expressions, as shown in the image below. Send the expression to the clipboard and paste it into the input field.

 

  • Examples of the condition to evaluate
e.g. Variable.number + 10 >100  
e.g. Global.testNumber + 100 / Variable.colNum >=1000
e.g. Variable.data + "test" == “Apptest”
e.g. Global.hasData == 1

 

  • Save the process definition, create a process instance, and execute.  The step should update the multiple globals with values. Render the process instance. Select Items - Globals - Latest menu option to view the global values. 

 

 

Definition Sample:

You may download the ZIP file and extract the sample definition(s) from the link here. Then, you can later import it (drag-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 import. Then, save the definition to confirm the changes.

Click here to download the sample file.

 

How can we improve this article?

Share additional info and suggestions