This documentation supports the 20.08 and consecutive patch versions of BMC Helix Business Workflows.

To view the documentation for the previous version, select 20.02 from the Product version menu.



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:

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

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

  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.

  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

Was this page helpful? Yes No Submitting... Thank you

Comments

  1. Melisa Kommala

    Can we get more details on the send notification using event details in this task flow? I can't get mine to kick off

    Nov 19, 2021 03:40
    1. Prajakta Pradhan

      Hi Melisa,

      Here's the topic that provides information about the Send Notification Using Event element: Creating processes to trigger notifications for cases.

      Hope this helps.

      Thanks,

      Prajakta

      Feb 08, 2022 08:39