Generate a password

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

Last published at: July 10th, 2023

clsGeneratePassword Step

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(s) from the link here and later import it (drag-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.