clsGenerateID step

Use this step to generate a new ID value.

Last published at: August 21st, 2025

Description:

This step generates a new ID value, using the start value as a reference for the first time and adding +1 to the last stored value in the degenerated table for a specific ID type. For example, the step generates a new value of 1001 if the previous value is 1000 and the ID Type is CHECK.  

 

Inputs

  • idType – Provide a string (for e.g. ATP)
  • idStartValue (optional) – Provide a numeric start value (e.g., 12350) to create for the first time or leave it empty for subsequent use
  • varGlobalNextValue –Variable / Global to store the next value generated (using start value as a reference and adding +1 to the last stored value in the deGenerateID table for the idType)
 

 

Returns

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

 

 

Usage:

 

 

Example:

Let’s build and execute the “generateIDDef” example:

  • Create a new process definition called “generateIDDef” and open it in Designer mode. 
  • Drag a “generateID” step to the canvas.
  • Connect the dots between the “Start” step and “generateID” steps, as shown above.
  • Define a variable or a global to store the result.
  • Click the “generateID” step to configure its “Required” properties. Provide a name for the step. Provide the ID text value. Provide a variable or a global to store the result. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 
     

 

  • Click the “generateID” step to configure its “Optional” properties. Provide the ID start value. The step searches for the last numeric value for ID TYPE (e.g., CHECK) in the degenerated table. The step creates a new record for the ID TYPE when there's no previous value and assigns the same value  (00001) to the variable or global in the above reference. Suppose there's a last entry of the ID TYPE. In that case, the step generates the following value (ID) in sequence, assigns it to a variable or global, and inserts a new record into the degenerated table. Click the Save button. 

 

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

 

  • Save the process definition, create a new instance, and then execute it. Render the process instance. 

 

  • Click the process step to view its properties. The step should generate the following ID in sequence, using the configured format. 

 

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 import. Then, save the definition to confirm the changes.

Click here to download the sample file.