Generating case documents

To provide your stakeholders with crucial information about your business processes in an automated and convenient way, generate case documents as part of your case life cycle. You create case documents by using templates to ensure that you deliver relevant, required data.

When you create templates for your case documents, you include tags that your application populates with case data during case processing. You can include tags for the following entities:
  • Fields that a case data model contains
  • Attachments
  • Views
  • Correspondence
For example, you can add tags for the case ID, goal and deadline, or case participants. You can also reuse one template for different cases, because every time your application provides information that is specific to the current case. You create document templates in a text editor and save files in the .docx format.
Before you begin: 
  1. In the navigation pane of Dev Studio, click Case types, and then click the case type that you want to open.
  2. In a process to which you want to add a Generate document shape, click Step > More > Automations > Generate document.
  3. In the Step properties panel, select a document to use as a template:
    Choices Actions
    Create a new template
    1. Create a new document in a .docx format in a word processor.
      The case document that your application generates reflects the styling that you use when you create a template, for example, the font and size.
    2. In the Step properties panel, click View and use fields.
    3. In the View and use fields window, search for a tag that you want to include in your document, and then click Copy tag.
    4. Paste the tag where you want to include information in your document.
    5. Repeat steps 3.c and 3.d for the tags that you need, and then save the document.
    6. In the Choose template document section, click Upload.
    7. In the Upload file window, click Choose file, and then navigate to the text template.
    8. Click Open.
    9. Click Done.
    Use an existing template
    1. In the Choose template document list, select a template that you want to use.
  4. In the Document name field, enter a descriptive name for the output document.
    For example: Name your document Job offer.
  5. In the Category list, select a category for your document.
  6. Click Save.
Result: At run time, when your application generates a case document, users can open and download it in the Recent content section.