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.
Here is a high-level view of what a workflow definition looks like:
Copy
export const myWorkflow: BetterWorkflowDef = { name: '🗺️ My Process', id: 'my-workflow-id', description: 'A brief description of the process', account: myOrganization, config: { // Core workflow logic pdfTemplate: { // PDF and document templates configuration }, actions: { // List of available actions }, initState: { // Initial data of the trace }, initActions: { // Actions available at the start for each group }, // ... other configuration properties }, groups: { // User groups involved in the workflow }, members: { // Members associated with the workflow }};
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: