We replaced the old request flow with a case-based architecture.
Every valuation gets a unique case ID and passes through defined states. The application only permits valid state changes. A case cannot reach final delivery when required inspection information or documents are missing.
- PostgreSQL stores the case and state history
- Transactional updates prevent partial status changes
- Each transition records the user and timestamp
- Mortgage application ID remains linked to the valuation case
- Failed background jobs do not create duplicate valuation events
This gave the broker a single source of truth for valuation progress.