Topic 018 / Core
Use cases and user workflows
Chapter 2.2 · Requirements
What and why
Requirements and constraints describe what and under what limits, but not the concrete path a real user takes — and systems fail most often on the paths nobody described. Use cases and user workflows are step-by-step descriptions of how an actor interacts with the system to reach a goal, including the paths where something goes wrong (unhappy paths). Builds on: → 17 — workflows turn stakeholder priorities into concrete sequences the design must support.
Diagram
Use case: Place an order
Happy path: browse → add to cart → checkout → pay → confirmation
Unhappy path: browse → add to cart → checkout → payment declined → retry or cancel
How it works
- Name the actor and their goal ("customer wants food delivered").
- Write the happy path as an ordered list of steps from trigger to goal reached.
- For each step, ask "what if this fails, or the user does something else?" — write at least one unhappy path.
- Check each workflow against the functional requirements (→ 15) — a workflow needing an unlisted requirement means the requirements were incomplete.
- Keep workflows at the user's level of detail — which component handles each step is HLD (→ 12), not yet decided here.
Practical example
Use case "track a delivery." Happy path: customer opens the app → sees order status → sees the courier's location update every few seconds → sees "delivered." Unhappy path: the courier's device goes offline → the app must show "last known location, X minutes ago" rather than a frozen map pretending to be live — a workflow detail that becomes a concrete requirement the HLD must support.
When to use it
- Use when: designing any user-facing feature, especially before HLD — workflows reveal requirements a pure feature list misses.
- Avoid when: writing workflows at implementation detail (which API call, which database field) — that's premature.
- Failure scenarios: shipping a flow that only handles success, so the first failed payment in production has no designed behavior.
- Simpler alternative: an internal tool with one user type and no meaningful failure mode needs only a short bullet list of steps, not formal workflows.
Practice
(Process kind; 15–20 min, no lab services). For "design a food delivery app," write three user workflows: placing an order, a restaurant rejecting an order, and a failed payment — the last two as unhappy paths. Done when each unhappy path ends in a defined state, not "the user is stuck."
Key takeaway
Use cases and workflows turn requirements into the concrete, steppable paths users actually take — including when things go wrong. Done when you can write a workflow with at least one unhappy path for any feature in under 10 minutes. Used next in → 12 (HLD data flow), → 20 (estimation needs workflow volumes).
References
None — this topic makes no external claims.
Source directory