A template is used to generate a document. Optional metadata can also be used with the template to insert values from process variables into the document template.
An example of the metadata that can be used by the template is:
{ "iceCream": { "flavor":"Mint" }, "timeOfYear": { "season":"Summer" } }
An example of how the template can import values from the metadata is:
Current season: <<[timeOfYear.get("season")]>> Flavor of the month: <<[iceCream.get("flavor")]>>
In the generated document this would display as:
Current season: Summer Flavor of the month: Mint