updateGlobals Step
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 process definition named “updateGlobalDef” and open it in Designer mode.
- Drag the “updateGlobals” step to the canvas.
- Connect the dots between the “Start” step and the “updateGlobals” steps, as shown above.
- Define a variable or a global to store the result.
- Click the "updateGlobals" step to configure its "Required" properties. Provide a name for the step, then click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description.

- Click the "updateGlobals" step to configure its "Optional" properties. Click the button to update multiple globals with values. Set “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 pop-up window appears for configuration. Click the Add Row (+) button to insert an empty row. Enter the global name and value. You can add multiple globals using the Add Row button. Click the duplicate icon to quickly repeat the last row and overwrite it with a new name and value. Click the Save button. Set “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 text box. Use the keyboard shortcut “ALT + E” to invoke the expression builder. This utility enables building and validating 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
(1) Variable.number + 10 >100
(2) Global.testNumber + 100 / Variable.colNum >=1000
(3) Variable.data + "test" == “Apptest”
(4) Global.hasData == 1
- Save the process definition, create a process instance, and execute it. The step should update multiple globals with values. Render the process instance. Select Items - Globals - Latest to view the global values.

Definition Sample:
You may download the sample definition(s) from the link provided and later import them (drag-and-drop) into 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.