cardinal

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───▶ Rejected

The states go in the Document States table.

StateDoc StatusOnly Allow Edit For
Draft0Employee
Pending0HR Manager
Approved1HR Manager
Rejected0HR Manager

The steps between them go in the Transitions table.

StateActionNext StateAllowedCondition
DraftSubmit for ApprovalPendingEmployee
PendingApproveApprovedHR Managerdoc.days <= 5
PendingRejectRejectedHR 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

FieldWhereEffect
Update Field, Update ValueStateSets a field when a transition enters the state
Allow Self ApprovalTransitionWhen off, the Record's creator cannot take this step
ConditionTransitionAn expression on the stored Record. The action shows only when it holds
Send Email AlertWorkflowMails the users who may take the next action
Next Action Email TemplateStateThe 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.

On this page