
⚖️ Legal · State Machine
The states of a commercial contract in a contract lifecycle management system, from request and drafting to renewal or expiry.
Drawing diagram…
State machine for contract lifecycle management: Requested by the business, Drafted from a template, In Negotiation with redlines exchanged, Legal Review, Internal Approval, Out for Signature, Executed, Active, then either Renewed (back to Active) or Expired, or Terminated early. Rejected at approval sends it back to negotiation.
stateDiagram-v2 [*] --> Requested Requested --> Drafted: From template Drafted --> InNegotiation: Sent to counterparty InNegotiation --> LegalReview: Redlines received LegalReview --> InNegotiation: Changes needed LegalReview --> InternalApproval: Terms agreed InternalApproval --> InNegotiation: Approver rejects InternalApproval --> OutForSignature OutForSignature --> Executed: All parties signed Executed --> Active Active --> Renewed: Renewal agreed Renewed --> Active Active --> Expired: End date, no renewal Active --> Terminated: Early termination Expired --> [*] Terminated --> [*]
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.
The stages of a civil court case from filing to judgment and appeal, including settlement at any point.