Description:
This step generates a new ID value by using the start value as a reference 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.

Example:
Let’s build and execute the “generateIDDef” example:
- Create a new process definition named “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, the ID text value, and a variable or 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. If there's no previous value, the step creates a new record for the ID TYPE and assigns the same value (00001) to the variable or global referenced above. If there's a last entry for the ID TYPE, the step generates the next 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” configuration is necessary for documentation and also measures workflow progress and 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, execute it, and then 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 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.