updateGlobals Step

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

Last published at: July 27th, 2024

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 above controls from the toolbox and connect as shown above
  • Define a variable to store the result after execution
  • Click on the "updateGlobals" step to configure its "Settings" properties. Provide a name to the step. 

 

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

 

  • Click on the button to update multiple variables with values. Provide the variable reference and values. Note: Use either single variable 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.