Skip to content
Back to blog

Blog

How to Handle Exceptions in an Approval Workflow

Reading time
6 min read
Published
Last updated
How to Handle Exceptions in an Approval Workflow

Request states, server-side permission checks and a copyable exception matrix, with the way ClinicTek approves and amends a clinic visit as a working example.

Handle exceptions in an approval workflow by settling four rules before you build. Decide who approves when the usual reviewer is away and what an edit does to an existing approval. Decide which of two simultaneous approvals wins. Decide what the user sees when a connected system fails, such as your ERP (the enterprise resource planning system where you run purchasing, accounts and stock). Write those rules next to each request state and the role allowed to move it, then build the approve screen and have the server check every request against them.

At BarmajTek we build custom business systems, and we also build and run ClinicTek, clinic management software in which a doctor approves each visit before it closes. This guide uses ClinicTek's approval flow, as it works in November 2026, alongside an illustrative purchase request.

Map the request states and who can move each one

Our illustrative purchase request has six states: draft, submitted, under review, approved, rejected and cancelled. Settle these points with the process owner first:

  1. Name the states and draw the allowed transitions. A request moves from submitted to under review; it never moves from approved back to draft.
  2. Give every transition a role and a condition. An employee submits, their department manager approves up to a set amount, and the finance manager approves above it.
  3. Scope each permission by department, amount and request state as well as job title, so a sales manager approves sales requests only.
  4. Decide what an edit does to an existing approval. A changed amount sends the request back to review; a changed supplier may need a fresh approval.
  5. Store the approved version of the request with the decision, so anyone reading the record later sees exactly what was approved.

How ClinicTek approves and amends a visit

A ClinicTek visit moves through three approval states: draft, approved, and amended if it changes after approval. The server enforces each transition:

  • Only the treating doctor who owns the visit can edit the draft. Approving it also needs the approval permission and access to the specialty clinic where the visit was recorded.
  • Clicking Finish & approve visit stores a fixed revision of the clinical note and prescription, closes the linked appointment and logs the approver and revision number.
  • After approval the visit is locked against direct edits. To change it, the doctor chooses Amend visit and fills in Amendment reason, a required field. A new revision is added and earlier ones stay visible under Revision history.
  • ClinicTek refuses any attempt to update or delete a stored revision, so no amendment can erase what was approved before it.

An exception matrix you can copy

Each row below pairs a situation that commonly breaks approval systems with the policy decision it needs and the test that proves the system enforces it. The last column shows what ClinicTek does in the equivalent case.

Article data table: An exception matrix you can copy (1)
SituationPolicy decisionTest that proves itIn ClinicTek
The requester can also approveAlternate reviewer where self-approval is prohibitedA manager submits a request, tries to approve it, and the server refusesThe doctor approves their own visit, because approval here is a clinician signing their own work
The reviewer is awayDelegation limited by scope and timeThe record shows who delegated and who acted; delegation stops when it expiresOnly the original treating doctor, with an active account, can change the record
The request changes after approvalRe-approval, or a reasoned amendment stored as a new versionThe old approval no longer covers the new termsAmend visit with a required Amendment reason
Two approvals arrive at onceOne valid transitionThe financial effect happens onceThe server locks the visit, so a repeated identical approval returns the approved visit, and a save made on an out-of-date copy is refused: "Reload the latest visit before approving."
The connection drops before the result arrivesA safe retryClicking twice creates one approval"The response was interrupted. The visit may already be approved. Reconnect and retry to check safely."
The ERP integration failsA visible waiting state someone ownsThe screen shows the last attempt and why it failed, never a success messageThe approval stands if creating the invoice line afterwards fails, and the error reaches our team

Test each row with values from your own policy. If approval has an amount threshold, test the exact threshold as well as amounts just below and just above it. Name the person who settles each disputed rule before it turns into an assumption in the code.

Why the server checks permission on every request

A signed-in user can send an approval request straight to the server without opening your screen. The server must therefore check the user, their organisation, the request and its current state every time. The OWASP Authorization Cheat Sheet says permission should be validated on every request, checks must run server-side, and access should be denied by default. Hiding the button from people without permission only improves the interface.

ClinicTek locks the visit record at the moment of approval and re-checks the doctor, the specialty clinic and the visit state before changing anything. Test your own system with at least three attempts:

  1. Open the approval URL directly with an account that lacks the permission.
  2. Replay an old approval request after the request's state has changed.
  3. Try to approve with an account from another organisation.

Log each refused attempt with enough detail to investigate it, without copying confidential documents into the logs.

Who runs the workflow after launch

Name one person in the business who changes the policy, reviews permissions on a schedule and withdraws delegations that are no longer needed. Give them a queue of stuck requests with the reason each one stopped. Set target approval times only after you know the real review workload.

Before widening the rollout, run one complete cycle on test requests in this order:

  1. Submit a request, review it, then change its amount after review.
  2. Reject it, then resubmit it with the correction.
  3. Approve it and follow the handoff until the request appears in the external system.
  4. Ask the process owner to read the final record and its history and confirm the recorded decisions match the policy.

Start with your request states and roles

If approvals in your business still move through paper, email or chat, collect your request states, roles and exceptions with the project brief checklist. We build them as part of our custom business systems service and connect them to accounting or an ERP through systems integration. If you are replacing an older system, our guide to proving a replacement keeps your business rules shows how to check before you switch. Then send us your project brief.

Approval under the approver's name also fits property management: an owner statement approved under the approver's name.

Sources

Read our editorial policy

Building a custom system for your business?

After “How to Handle Exceptions in an Approval Workflow”: tell us scope, users, and integrations — we reply with a practical plan after reviewing your request.