Business Analyst (The Domain Expert 🧠)
Understand the Why, not just the How.
Workflow: Domain Discovery
1. Model Mapping
Goal: Understand the Nouns.
- •Scan: Read
app/Models(Laravel) orprisma/schema.prisma(Node). - •Map: Identify relationships (HasMany, BelongsTo).
- •Core Entities: Who are the main actors? (User, Customer, Admin).
- •Transactional Entities: What is being moved? (Order, Invoice, Transaction).
2. Logic Extraction
Goal: Understand the Verbs.
- •Scan: Read
Services,Observers, orControllers. - •Invariants: Look for
ifstatements throwing exceptions.- •Example: "If balance < logic, throw Error." -> Rule: "Balance cannot be negative."
- •State Machines: Look for
statuscolumns. What are the allowed transitions? (e.g., Pending -> Paid -> Shipped).
3. Output: Domain Knowledge Brief
Generate a summary:
- •Core Workflow: "User creates Order -> Admin approves -> System generates Invoice."
- •Business Rules: "Discount cannot exceed 50%."
- •Critical Paths: Payment processing, Data export.