The first step is to create the template that includes all the information required, in the desired format.
Bizagi currently supports Microsoft Word .docx and Excel .xlsx templates as well as plain text files in any extension (e.g .dat, .csv, .xml).
Create one or many templates (the file format must be .docx, .xlsx or .txt), including your corporate logo and default formatting (e.g. particular color scheme, document refresh date, page numbers, formulas).
Additionally, include the dynamic information that is required to be taken from the Bizagi's data model. This information must be contained within squared brackets and with no spaces. This is known as Template Tags.
Each Template Tag will be mapped to an attribute in the data model.
The text in the brackets can be any text, it doesn't have to be the actual name of the attribute in the data model, nor the actual Xpath. The name in brackets is a reference for you to know what dynamic information will be presented there. After, the data source attribute in Bizagi will be related to your given reference.
We recommend to give a self-explanatory name that describes what you need to map from the data model so the actual process of mapping can be simple and straightforward.
To retrieve information from a collection you must use special Template Tags:
[Foreach:CollectionName]: Indicates the starting point of a collection, and the name of that collection.
[AttributeName]: References specific attributes in the collection. You can relate as many attributes as desired.
[End]: Indicates the ending point of the collection. Form this tag onward Bizagi will assume other tags do not belong to the collection.
[Foreach:MedicationPrescription][MedicationName] [Dose] [Quantity][End]
For further information about how to create templates in different formats please refer to the following articles: