clsGeneratePassword Step

Use this step to generate a new password with desired length and special chars.

Last published at: September 13th, 2024

Description:

Use this step to generate a new password with the desired length and special chars.

 

Inputs

  • PasswordLength – Length of the password
  • IncludeNumbers – Checkbox to include numbers in the password
  • IncludeSpecialChars – Checkbox to include numbers in the password
  • GeneratedPassword – Variable or Global to hold the generated password
 

 

Returns

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

 

Usage:

 

 

Example:

Let’s build and execute the “GeneratePasswordDef” example.  

  • Create a new definition called “GeneratePasswordDef”
  • Select the definition and click the “design” button
  • Drag a "clsGeneratePassword" step to the canvas
  • Connect the dots between the start and “ clsGeneratePassword” step
  • Define a variable/global to store the generated password after execution
  • Click on the "clsGeneratePassword" step to configure its "Settings" properties. Provide a name to the step. Configure desired password length. Provide the variable/global to store the generated password. 

 

  • Click on the "clsGeneratePassword" step to configure its "Advanced" properties. Select whether numbers and special characters should be included in the new password.

 

  • 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 in the images below. Configure the “Logging” using the following properties. 

 

  • Save the process definition, create a new process instance, and execute.  This process step should generate a password as configured.

 

Definition Sample:

You may download the sample definition from the link here and later import it (drag-drop) to your FlowWright Process (XML) and Form Definition (HTML) page. After import, you must verify the process steps and complete the database configuration, if any. 

 

https://github.com/FlowWrightCode/FW10Steps/blob/main/GeneratePasswordDef.xml