Loan Application State Diagram¶
Run the State Diagram MicroSim Fullscreen
About This MicroSim¶
A loan application is a textbook example of an object with a meaningful lifecycle. It moves through a fixed set of states — Draft, Submitted, Under Review, Conditionally Approved, Awaiting Documents, Approved, Denied, Funded, Closed, Withdrawn — and only a small subset of transitions is legal between them. Toggling Show Invalid Transitions makes the state diagram's role as a business-rule guardrail visible.
How to Use¶
- Click Play Example Application to walk one application from Draft to Closed
- Click any state for the business operations legal in that state
- Toggle Invalid Transitions to see the forbidden moves the state machine prevents
Embedding This MicroSim¶
<iframe src="https://dmccreary.github.io/information-systems/sims/loan-application-state-diagram/main.html"
height="722px" width="100%" scrolling="no"></iframe>
Lesson Plan¶
Learning Objectives¶
By the end of this activity, students will be able to:
- Read a UML state diagram and identify states, transitions, and events
- List legal transitions out of any state
- Explain why a state diagram is the right tool for an object with a lifecycle
- Recognize how a state machine acts as a business-rule guardrail
Suggested Activities¶
- State Walk (5 min) — Click each state; recite legal operations
- Forbidden Move (10 min) — Toggle invalid transitions; explain why each one is forbidden
- Add a State (15 min) — Propose adding "Auto-Underwritten." Where would it fit, and what transitions would change?
References¶
- OMG. UML 2.5 Specification, State Machines.
- Harel, D. (1987). Statecharts: A Visual Formalism.