$ cat workflow-engine.md
Workflow engine with document automation
Cases that move themselves forward.
- COMPANY
- Dexwox Innovations
- ROLE
- Lead Backend Developer & Backend Architect
- STACK
- Node.js · Express · PostgreSQL · Sequelize · JWT · Cron jobs · AWS S3 · Docker · React · TypeScript
THE IDEA
Statutory deadlines, tracked automatically.
A legal case management system that takes overdue loans from legal notice to court hearing, tracking every case against its statutory timeline.
THE ENGINEERING
Each case moves through a state machine on its own:
The problem
Turning unpaid loans into court cases ran on notes and Excel: arrears, cheque status, legal notices, filings and hearing dates. Cheque-bounce cases have strict legal deadlines, and missing one can lose the case.
The idea
Cheque-bounce cases follow strict legal timelines: 30 days to issue a notice, 15 days for payment and 30 more to file in court. This legal case management system tracks each deadline, generates the notice and complaint from templates, and shows upcoming hearings in advance, so the legal team can prepare every case on time.
What I built
I designed the architecture and led backend development of a system that follows each case end to end.
- Automatic case flow. Overdue loans move into legal proposals on their own; nightly jobs enforce the legal deadlines.
- Document generation. Legal notices, complaints and power-of-attorney papers filled from templates, in Word and PDF.
- Dashboard and hearing tracking. Today’s hearings, every cheque-bounce case and the cases linked to overdue loans, with regular reminders. Branch staff see their own branches; admins see every branch.
- Linked cases. Look up any borrower or guarantor and see every case connected to them, and settle linked cases in one step.
- Safe bulk import. Excel uploads run inside a database transaction, with per-row error reporting.
- Access and audit. Branch-level data access on top of four roles, and every status change recorded in an audit trail.
The impact
Case details live in one safe place. The legal team sees upcoming hearings in advance and has time to prepare for each case.
Built at work for a legal-recovery team. Client and product names are left out on purpose.