Counter Increment Tool

The Counter Increment Tool in Joget DX increments a Workflow Variable or an App Variable within a workflow process. It's particularly useful for scenarios involving loops or where you need to dynamically track and increment a counter. 

To use this tool correctly, you must place it within a loop in your workflow (a transition out of the tool and later a transition that passes back into the tool).

Configure counter increment 

To configure Counter Increment, drag and drop the Tool element onto the canvas in Process Builder,  click on it, and select Mapping.

When adding Counter Increment in the field Tools, you will see the following fields available for configuration:

  • Type: Select whether the variable to be incremented is a Workflow Variable or an App Variable.
  • Variable Name: Specify the name of the variable that you want to increment. This should be the exact name of the variable as defined in your workflow or application.
  • Initial Counter Value: If the variable doesn't already have a value, set the counter's starting value. This ensures a default starting point.
  • Increment Value: Enter the integer value by which the counter should be incremented each time the tool is triggered.
  • Reset value when value exceeds: You can optionally set a threshold value. When the counter reaches or exceeds this value, the tool will reset it back to its initial value. This feature is helpful for cyclic operations or when you want to limit the counter's range.
Created by Julieth Last modified by Aadrian on Dec 13, 2024