Skip to content

Sequence Diagram

Sequence of message sent between set of objects to perform a task

  • The vertical line is called lifeline
  • The vertical box is called activation box

Most diagrams follow this "Cheat Sheet" pattern:

  1. ActorBoundary: "Click Button".

  2. BoundaryController: "Process Request."

  3. ControllerController: "Self-compute" (The loop-back arrow).

  4. ControllerDatabase: "Save/Fetch Data."

  5. Return Message: Dashed line (←−−) back to the Actor.

  6. alt: Use for "If/Else" (e.g., If login succeeds vs. fails).

  7. opt: Use for Optional steps (similar to the «extend» relationship).

  8. loop: Use for "Repeating" actions (e.g., "Wait for connection").

Pasted image 20260216193803.png

Using Frames

Pasted image 20260216202146.png