Workflows and notifications
Require approvals before documents are submitted, and send automatic alerts.
Overview
A Workflow forces a document to pass through approval stages before it can be submitted. A Notification sends an email or system alert when something happens, such as an invoice becoming overdue.
Prerequisites
The System Manager role. Roles for the approvers must exist. See Creating users and roles.
Steps
Create a workflow
- Search for Workflow and click Add Workflow.
- Enter a name and choose the Document Type, for example Purchase Order.
- In the States table, add each state, for example Draft, Pending Approval, Approved, Rejected, and the Doc Status for each (Draft for the first ones, Submitted for Approved).
- In Transitions, define who can move from one state to another: for example from Draft to Pending Approval by Purchase User, with the action Request Approval, and from Pending Approval to Approved by Purchase Manager, with the action Approve.
- Tick Is Active, and click Save.
Create a notification
- Search for Notification and click Add Notification.
- Choose the Document Type and the Send Alert On event (for example Days After a date field, or Value Change).
- Add Recipients (a role, a user, or a field such as the customer's email).
- Write the Subject and Message. You can use values from the document with
{{ doc.customer }}. - Save.
Practical example
Purchase orders above KES 100,000 need the owner's approval. A workflow with a condition on the grand total moves large orders to Pending Approval. A notification emails the owner each time one is waiting.
Important notes
- Only one active workflow can apply to a document type.
- Test with a user who has only the roles in the workflow.
- Notifications need working outgoing email. See Email and regional settings.
Common mistakes
- A workflow without a way back from Rejected, which traps documents.
- Forgetting to set the Doc Status, so documents never become submitted.
Next steps
Read Document numbering.