formPDF Step

Use this step to create a PDF file from a Form Instance HTML content

Last published at: October 1st, 2024

Description:

This step creates a PDF file from a Form Instance HTML content file. 

 

Inputs

  • formInstanceID – Tenant manager connection string
  • outputPath – Tenant/Host Name
 

 

Returns

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

 

Usage:

 

 

Example:

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

  • Create a new definition called “formPDFDef”
  • Select the definition and click the “design” button
  • Drag a “routeForm” and “formPDF” steps to the canvas
  • Connect the dots between the Start, “routeform” and “formPDF” steps
  • Click the “routeForm” step to configure its “Settings” properties. Select the form definition from the drop-down list. Provide a variable/global reference to store the form instance ID. 

 

  • Click the “formPDF” step to configure its “Settings” properties. Provide the variable/global reference with the form instance ID. Provide a variable/global file reference to store the physical file path to the PDF.

 

  • Click the “formPDF” step to configure its “Advanced” properties. Provide a variable/global reference to store the virtual file path to the PDF. 

 

  • 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 process instance, and execute. The Step generates and stores a new PDF file at a specified output path.

 

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.