
⚖️ Legal · State Machine
The stages of a civil court case from filing to judgment and appeal, including settlement at any point.
Drawing diagram…
Civil litigation state machine: plaint filed, notice served on the defendant, written statement filed, issues framed, evidence and cross-examination, final arguments, judgment. Adjournments send a hearing back to the same stage. Parties may settle or go to mediation at any stage. After judgment the losing party may appeal; otherwise the decree is executed.
stateDiagram-v2 [*] --> Filed Filed --> NoticeServed NoticeServed --> WrittenStatement WrittenStatement --> IssuesFramed IssuesFramed --> Evidence Evidence --> FinalArguments FinalArguments --> Judgment Evidence --> Evidence: adjourned WrittenStatement --> Mediation: referred Evidence --> Mediation: referred Mediation --> Settled: agreement Mediation --> Evidence: failed Judgment --> Appeal: party appeals Judgment --> Execution: decree enforced Appeal --> [*] Execution --> [*] Settled --> [*]
The states of a commercial contract in a contract lifecycle management system, from request and drafting to renewal or expiry.
How a document gets signed electronically by several parties in order, with identity checks and a tamper-evident audit trail.
A law firm's case management platform: matters, documents, court dates, time tracking and billing, with a client portal.
How a contract or legal document is reviewed inside a company: intake, playbook check, risk rating, approvals and signature.
A schema for law firm matters and billing: clients, matters, timekeepers, time entries, expenses, invoices and trust accounts.
How electronic evidence is collected and reviewed in litigation: legal hold, collection, processing, review and production to the other side.