/ Search

Search Epistola

Find documentation, integration guides, tour steps, blog posts and pages.

DocsIntegrationsTourBlogPage
↑↓↵esc

Work in progress — The Learn section is being expanded; alpha, beta, and preview capabilities are labelled where relevant.

Document Generation Action

Add a workflow step that asks Epistola to generate a document.

Document generation action

Use this action at the point in the process where the case needs a document.

Configure the action

  1. Add a document generation step to the process.
  2. Select the Epistola connection.
  3. Choose the catalog or template source.
  4. Choose the template.
  5. Choose the variant, or let Epistola use the default variant.
  6. Choose the environment.
  7. Map case information to the document fields.
  8. Choose where the generated result should be stored for later steps.

Choose a variant

Epistola selects a variant in three ways:

  1. Omit the variant to use the template’s default variant.
  2. Set a variant id when the process knows exactly which layout to use.
  3. Supply attributes (key/value pairs such as language: nl or brand: acme) and let Epistola match them against the variants on the server.

A variant id and attributes are mutually exclusive. Required attributes must all match; optional attributes only add to the score. When no variant matches, Epistola falls back to the default variant — but when two or more variants share the highest score, that is an error, not a fallback. If Valtimo business rules decide which presentation is needed, let them compute the id or the attribute values; Epistola then uses the id, or matches on the attributes.

After the action

Always add a wait step and a success/failure route after generation. Do not assume the PDF is ready immediately.

More on this topic