Phased rollout This version of the software is currently available only to early adopter SaaS customers as the first step in our phased rollout. Click here to view an earlier version.

Example of generating a  formatted PDF document


In BMC Helix Business Workflows you can generate PDFs for required case data. To automatically generate formatted PDFs, you need to create a document template to define the format and content of the PDF document, include the Generate PDF element in a process and add the document template as an Input parameter for the element, and then define an action for the PDF document.   

This example uses a scenario for generating a PDF document for a Visa letter. A case agent creates a case for an employee who requires a Visa letter. When certain criteria are fulfilled, a PDF of the visa letter is automatically generated and sent to the requester as an email notification.

To create a document template for a sample Visa letter and generate a PDF

This section covers an end-to-end example of creating a document template for a visa letter and generating a PDF for the visa letter request.

Peter is a case business analyst. He wants to create a document template for Visa letter. Peter completes the following steps to create a document template:

  1. On the Create Document Template page, Peter adds the field values as shown in the following figure:

    Click to view the Create Document Template page

    20.08.01_document template example 1.png

  2. In the Document Body section, to navigate to the Edit Expression page, Peter clicks doc temp_expression builder icon.png. He then selects case fields and dynamic fields as variable values from the list and saves the document template.

    Click to view the Edit Expression page

    19.05_document template example_2.png

  3. Peter creates an automated task template of Create Visa letter for an employee by creating a new process.

    Click to view the automated task template page

    20.08.01_document template example 3.png

  4. Peter edits the process by clicking he Edit Process option on the task template screen.
  5. In the Process designer of BMC Helix Innovation Studio, along with the other required elements, Peter includes the Generate PDF element to generate the PDF and the Send Notification Using Event element to send the generated PDF to the employee.
    The input to the Generate PDF element is the Visa letter document template, the case record, and the name of the PDF file. The output of the Generate PDF element, which is the PDF file is the input to the Send Notification Using Event element.

    Click to view the process details

    automatedPDF_Process.png

  6. Peter associates the automated task template with a case template—Visa letter request.

When a requester submits a request for visa letter, a case agent creates a case by using this case template. The automated task of Create visa letter for an employee is executed when the case is in the In Progress status. A PDF that displays the text based on the document template structure and case specific parameters is automatically generated.

Further, this PDF is sent as an attachment while sending the email to the requester.

Related topics

Defining-document-templates-and-generation-of-PDFs

Example of generating a formatted PDF document

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*