Skip to main content
In Stratumn, a workflow is defined as an object that groups together its name, the organization it belongs to, its members, and its core configuration.

Workflow Example

Here is a high-level view of what a workflow definition looks like:

PDF & Document Templates

The pdfTemplate section in the config object is where you define templates used for generating documents like PDF, DOCX, PPTX, or Excel files. Each template is identified by a unique key and contains the following properties:
string
required
The path to the template file (e.g., src/assets/pdfTemplate/example.pdf).
object[]
required
A list of fields that can be filled in the template.

Configuration Example

These templates can then be used in your effects using the generatePdf external function.