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
- barCodeLabel - barcode label
- 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
- barCodeColor - select barcode color (default Black)
- barCodeTextColor - select barcode text color (default Black)
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, barcode text, and a variable or global to store the absolute and relative file paths of the barcode file. Click the Save button. Note: Click the "AI Predict" button to have Copilot 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. Enter the barcode label. Select the file format from the drop-down list. Select the text location from the drop-down list. Enter the barcode height and width in pixels. Select the barcode and text colours. Click the Save button.

- The “Logging” configuration is necessary for documentation and to measure workflow progress and percent complete. This is done 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.