Generate barcode image for the text

Use this step to generate a barcode image for the text provided.

Last published at: February 13th, 2025

generateBarCode Step

Description:

This step generates a barcode image from the provided text.

 

Inputs

  • barcodeText – generate barcode using the provided text
  • barcodeType – select the type of barcode, QR, etc
  • fileFormat – select the image format, Jpeg, PNG…
  • textLocation – location of the text to be displayed, top, bottom, hide…
  • height – height of the barcode
  • width – width of the barcode
  • textVarGlobal – variable/global to hold the path to the generated barcode file
  • relativeVarGlobal – variable/global to hold barcode relative file path 
 

 

Returns

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

 

 

Usage:

 

 

Example:

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

  • Create a new definition named “generateBarCodeDef” and open it in Designer mode. 
  • Drag a “generateBarCode” step to the canvas. 
  • Connect the dots between the “Start” and “generateBarCode” steps, as shown above. 
  • Define a variable or a global to store the file paths.
  • Click the "generatebarcode" step to configure its "Required" properties. Provide a name for the step, a barcode text, and a variable or global to hold both the absolute and relative file paths of the barcode file. 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 "generate barcode" step to configure its "Optional" properties. Select a barcode type from the drop-down list. Select the file format from the drop-down list. Select the text location from the drop-down list. Enter the barcode pixel height and width. 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 a new barcode image file. Use the file path to download and view the image. 

 

 

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.