Example of generating a formatted PDF document
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:
On the Create Document Template page, Peter adds the field values as shown in the following figure:
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.
Peter creates an automated task template of Create Visa letter for an employee by creating a new process.
- Peter edits the process by clicking he Edit Process option on the task template screen.
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.- 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.