# Approval workflows

> Build each approval chain once: which records it catches, who approves in what order, what a rejection does and who is told. Every decision is kept in an audit log.

## Highlights

- **Seven ways to name an approver**: One person by name, a role, a hand-picked group, the department head, the requester's reporting manager, a visit's host, or people found from the record, such as the head of an asset's department.
- **Routes chosen by the record's own fields**: Trigger conditions decide which workflow a record takes, such as transfers above a set value. Inside a workflow, a condition step splits the run into two paths.
- **Rejections go where you decide**: For each approval step, choose whether a rejection ends the run, sends it back to an earlier step or starts it again from step 1. The approver must give a reason.
- **Approve from the email**: Where email approval is switched on for your organisation, an approver can approve or reject through the email's link and a confirmation page, without signing in.
- **Cover for approvers on leave**: A delegation lets a colleague act on your approvals from a start date until the end date, if you set one, or until you switch it off, for every workflow or only the ones you pick.
- **An audit log of every transition**: Run starts, decisions, delegations, cancellations and failed actions are logged with the time and, where a person acted, who. There is no screen for editing or deleting entries.

Some changes in AssetsAdm wait for a chain of steps, called a workflow, before they take effect: an asset request when it is submitted, a purchase order when it is raised, a ticket that needs sign-off. Each workflow belongs to one module and listens for one action there. When that action happens, a run starts and moves through the steps in order until the last one completes, an approver rejects it or someone cancels it.

## What you can do

### Decide which records a workflow catches

Pick the module, then the action: a transfer, a condemnation or a ticket event, for example. Each asset request type your organisation defines gets an action of its own, so a new-asset request and a replacement can take different chains.

Trigger conditions narrow it further: a field of the record, an operator such as equals, greater than, in list or is empty, and for most operators a value. Every condition must match. Workflows sharing an action are tried from the highest priority (1 to 100) down, and only the first match runs. Give a special case, say transfers above a set value, the higher priority, and the rest falls through to the general workflow.

### Lay out the steps

Steps are cards dragged into order on a canvas. Besides approval steps, three kinds need nobody to act:

- a **condition** step tests the record, and each of its two paths can lead to the next step, the end or a numbered step;
- a **notification** step tells someone, such as the initiator or a role, by email, in-app notice, Slack or webhook (a message posted to another system's web address), and a failed send never holds up the run;
- an **action** step writes a status or a field on the record, or calls another system by webhook. If it fails, its error rule decides what follows, such as carrying on or pausing the run for someone to retry or skip the step.

### Choose who approves

A resolver, set up by the platform team, finds approvers from the record itself. A step with several approvers, such as a role or a group, can need all of them or a minimum number, and one rejection rejects it. Each step's rejection rule then ends the run, restarts it from step 1, or sends it back to an earlier step, reopening that step and every later one already decided.

### Clear what is waiting

Pending Approvals holds every step waiting for you in your current unit (an operating division, such as a hospital), including those delegated to you. Approving takes an optional note; rejecting needs a reason.

With email approval on, the step's email carries approve and reject links for those who can act on it. Each opens a page that asks for confirmation, so a mail scanner that opens links cannot decide for them. A link works for up to seven days and stops once the step is decided. A step with a required field that looks up another record is approved in the app.

A delegation does not cover its end date, so set that to the day you return. Both of you see the steps, and whoever acts first decides.

### Test it, then follow each run

Run Test checks every step, even before you save. It lists the approvers each approval step would ask and flags gaps such as a role nobody holds. It cannot name department heads or reporting managers, which depend on a real record, and it lists a role's holders in all units, while a live run asks only the record's unit.

Requesters see each step of their runs: who acted, when, with what note. The audit log filters by action, workflow, user and dates across every unit.

Someone allowed to cancel runs can stop one, giving a reason. Cancelling cannot be undone, and the record's module decides what it means for the record. A step paused by a failed action can be retried or skipped.

## How it connects

- Records in [Asset management](https://www.assetsadm.com/features/asset-management/), [Maintenance](https://www.assetsadm.com/features/maintenance-management/), [Stores & Procurement](https://www.assetsadm.com/features/stores-and-procurement/), [Contract management](https://www.assetsadm.com/features/contract-management/), [Budget control](https://www.assetsadm.com/features/budget-control/), [Finance](https://www.assetsadm.com/features/finance/), [Facility bookings](https://www.assetsadm.com/features/facility-bookings/), [Fleet management](https://www.assetsadm.com/features/fleet-management/), [Inspections](https://www.assetsadm.com/features/inspections/), [Visitor management](https://www.assetsadm.com/features/visitor-management/) and [Document management](https://www.assetsadm.com/features/document-management/) can each start a workflow from that module's own actions.
- Department head steps ask the heads named in [Organisation](https://www.assetsadm.com/features/organisation/), which can differ from one unit to the next.
- Reporting manager steps use the manager on each person's profile in [Users and roles](https://www.assetsadm.com/features/users-and-roles/).

## Who uses it

- **Operations and finance heads** design each chain, test it and switch it on.
- **The approvers your workflows name** decide from their queue or an email, and set up a delegation before leave.
- **Staff who raise requests** see which step each of their runs has reached.
- **Internal auditors** filter the audit log by person or workflow and export it to a workbook.

## Questions and answers

### What if an approver never acts, or has left?

The run waits on that step. The requester, in My Instances, and anyone who can see all of a unit's runs can open its timeline to see which step it is on. For a planned absence, the approver sets up a delegation so a colleague acts for them. Where the approver setup is wrong, for example a department with no head or a role with nobody in that unit, the run stalls and the audit log records an approver resolution failure. Someone allowed to cancel runs then cancels it with a reason, and the request is raised again once the setup is fixed.

### What happens to a request when no workflow matches it?

Each module decides, and its own feature page says which way it goes. In many modules the record goes straight to approved on submit, but not in all, so read the module's page before you rely on it.

### Can approvers fill in details while they approve?

Yes. An approval step can offer a few fields of the record, chosen from a list the product sets for each record type, such as the expected delivery date on a purchase order. Each field opens with the record's current value, and a field can be made required to approve. Rejecting never needs them. On a step with several approvers, the next one sees what the previous one entered.

### We run several plants or hospitals. Can each have its own approvers?

Approvers are always drawn from the unit the record belongs to, so a role or a department head step asks the people of that unit. A trigger condition can also test the record's unit, department or other fields, so one unit's requests can take a route of their own. A condition set on a value that belongs to one unit only matches that unit's records.

### Can we change a workflow while requests are going through it?

You can edit and save it, and each save raises its version number. A step that has already run in any request keeps the record of its approvals and cannot be deleted; deactivate the workflow, or duplicate it and change the copy, instead. Deactivating stops new runs from starting, while runs already in progress carry on to the end.

## Related articles

- [Designing approval workflows people actually follow](https://www.assetsadm.com/blog/approval-workflows-people-follow.md)
