Amlaki Engineers Detail State Machine Design for Saudi Ejar Lease Contract Workflow
Saudi real estate platform Amlaki has published a technical breakdown of its lease contract registration workflow built around Saudi Arabia's government Ejar platform. The system follows a strict request lifecycle — validation, fee computation, wallet debit, and request creation — before moving through four tightly defined states: PENDING, IN_PROGRESS, COMPLETED, and REJECTED. Engineers deliberately limited the number of states, arguing that a state only justifies its existence if system behavior differs within it, not merely its description. Both terminal states are explicitly guarded in code to prevent duplicate refunds from concurrent admin actions. Amlaki notes it has not yet joined Ejar's official digital integration program and currently routes registrations through a licensed broker.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in