Use Case Authoring: Actors, Preconditions, Main Flow & Exception Flows
Overview & Learning Objectives
A Use Case documents the step-by-step contractual dialogue between an Actor (human user or external system) and the System to achieve a specific business goal. While Agile user stories are concise and focused on sprint delivery, formal Use Cases capture the entire end-to-end scenario, including preconditions, triggers, main success flows, branching alternate paths, and critical system exception recovery.
- Master the 7 components of a formal Use Case: Title, Actor(s), Preconditions, Trigger, Main Success Scenario, Alternate Flows, and Exception Flows.
- Differentiate Primary Actors (who initiates), Secondary Actors (who provides service), and Off-stage Stakeholders.
- Draft bulletproof Alternate and Exception Flows that ensure robust system resilience.
Real-World Example: Borrowing a Book from the School Library Recipe
- Scenario: Step-by-step recipe for borrowing a library book from the school checkout desk.
- Structure: Primary Actor, Preconditions (valid library card), Main Happy Path, and Alternate/Exception Flows.
- Analyst Value: Maps all edge cases (e.g. expired account, lost book) so software handles errors gracefully.
Visual Infographic: The Cockburn Use Case Flowchart
Is user logged in? Is phone number verified?
Step 1 Step 2 Step 3 Goal Achieved!
Wrong password? Account locked? Retry logic engaged.
Industry Standard & Framework
Standard: Alistair Cockburn Use Case Standard: A use case captures a contract between the stakeholders of a system about its behavior under various conditions as it responds to a request by one of the stakeholders.
Real-World Business Application: Zepto Instant Refund Claim Use Case Specification
Formal documentation of the customer refund workflow for ice cream melted during 10-minute quick-commerce delivery.
| Use Case Section | Specification Detail |
|---|---|
| Use Case ID & Title | UC-REF-01: Submit Instant Grocery Spoil Refund Claim |
| Primary Actor | Customer (Mobile App User) |
| Secondary Actors | Third-Party UPI Payment Gateway, AWS Rekognition Photo Inspection API |
| Preconditions | 1. Customer is authenticated.\n2. Order status is marked 'DELIVERED' in database.\n3. Elapsed time since delivery is <= 120 minutes. |
| Trigger | Customer taps "Report Item Damaged / Melted" on delivered order detail screen. |
| Postconditions (Success) | 1. Refund amount credited to customer account.\n2. Inventory shrinkage ledger updated.\n3. Notification SMS dispatched. |
| Main Success Flow | 1. System presents list of delivered items.\n2. User selects damaged item and uploads photograph.\n3. AI service validates image format.\n4. System issues instant UPI transfer within 60 secs.\n5. System renders confirmation screen with transaction ID. |
Step-by-Step UI Tutorial & Visual Workflow Guide
Below is the practical, non-technical walkthrough showing how Business Analysts design, review, and execute this capability inside real-world tools like Jira, Confluence, and enterprise software portals.
Visual Use Case Architecture: Alistair Cockburn Formal Specification Blueprint
EXECUTION PHASESUse Case ID: UC-204 | Title: Instant UPI Spoilage Refund | Primary Actor: Customer | Secondary Actors: Payment Gateway, Warehouse Auditor.
1. Customer has an account in good standing. 2. The order was marked DELIVERED within the past 2 hours.
1. Customer selects damaged item. 2. Uploads photo. 3. System validates eligibility (< INR 1,000). 4. Instant UPI payout credited in 180s.
3a. If refund amount > INR 1,000, system routes claim to human supervisor with a 15-minute SLA timer.
4a. If UPI bank network times out, system automatically deposits equivalent instant credit into customer Zepto In-App Wallet.
Refund recorded in accounting ledger, customer notified via push notification, dark store inventory damaged write-off logged.
Step-by-Step: Structuring Bulletproof Use Cases in Confluence
Always phrase the title as an action: "Request Grocery Refund", not "Refund Section".
Number steps sequentially (1, 2, 3...) showing the ideal journey where zero errors occur.
Use alphanumeric sub-numbering (3a, 3b, 4a) to document exactly what the system does when things go wrong.
Hand the use case to QA testers. Every Alternate and Exception branch directly becomes a dedicated regression test case.
Formal Use Case Card: UC-204 Instant Grocery Refund
COCKBURN BLUEPRINT| item | when | audience |
|---|---|---|
| Primary Actor | Zepto Mobile App Customer | Secondary: Razorpay Payouts API, Support Agent |
| Preconditions | Order status = DELIVERED within last 120 minutes; photo permissions enabled on phone | Entry Guard Condition |
| Main Flow (Happy Path) | Select item -> Upload photo proof -> Auto-Approved -> INR 240 credited via UPI within 3 min | Primary Success Scenario |
| Exception Flow (Fail-safe) | Customer UPI bank down -> System alerts customer and deposits instant Zepto Cash Wallet credit | Guaranteed Customer Satisfaction |
Implementation Guidelines for Business Analysts
- Write the Main Success Flow first in 5 to 8 clean conversational steps; then brainstorm "What could go wrong at Step 2? Step 3? Step 4?" to identify all Alternate and Exception flows.
- Every Exception Flow should map directly to a negative QA test case in your test suite.
Practical Hands-On Exercises
- Draft Alternate Flow 3A for an ATM Cash Withdrawal use case when the machine runs out of ₹500 currency notes.