Workflows
Move Records through named states, with a role allowed to take each step.
A Workflow adds named states to one RecType, such as Draft, Pending Approval, Approved and Rejected. Users move a Record between states from the form's Actions menu. Each move is a transition that one role may take.
Only a System Manager can create or edit a Workflow.
Example: leave approval
Draft ──Submit for Approval──▶ Pending ──Approve──▶ Approved
└──────Reject───▶ RejectedThe states go in the Document States table.
| State | Doc Status | Only Allow Edit For |
|---|---|---|
| Draft | 0 | Employee |
| Pending | 0 | HR Manager |
| Approved | 1 | HR Manager |
| Rejected | 0 | HR Manager |
The steps between them go in the Transitions table.
| State | Action | Next State | Allowed | Condition |
|---|---|---|---|---|
| Draft | Submit for Approval | Pending | Employee | |
| Pending | Approve | Approved | HR Manager | doc.days <= 5 |
| Pending | Reject | Rejected | HR Manager |
A state with Doc Status 1 submits the Record when a transition enters it. Doc Status 2 cancels it.
Set one up
Create the states in Workflow State and the actions in Workflow Action Master, or pick existing ones.
Open /desk/workflow/new. Set Workflow Name, RecType and Workflow State Field (workflow_state by default). Tick Is Active.
Fill Document States and Transitions. The first state is where new Records start. Click Builder to see and edit them as a graph.
Save. Activating a workflow deactivates the RecType's other workflows.
Options
| Field | Where | Effect |
|---|---|---|
| Update Field, Update Value | State | Sets a field when a transition enters the state |
| Allow Self Approval | Transition | When off, the Record's creator cannot take this step |
| Condition | Transition | An expression on the stored Record. The action shows only when it holds |
| Send Email Alert | Workflow | Mails the users who may take the next action |
| Next Action Email Template | State | The Email Template for that mail |
In the desk
The form shows the current state as a badge. The Actions menu lists only the transitions the user's roles allow and whose conditions hold. Taking one saves, submits or cancels the Record with the usual permission checks.
Each move also adds a Workflow entry to the Record's timeline. A quick list on a workspace shows an action button per row, so an approver can work from there.
While a Record waits in a state, a Workflow Action row records the open approval and the roles that may act. When someone moves the Record on, the row is completed with who did it and with which role. System Managers can read these rows.
An Automation can start when a Record enters a state, with the Workflow State trigger.