State Diagram
About
A State Diagram represents an object's lifecycle states and transitions between them based on events or conditions. It helps model real-world behaviour of objects.
Refer to the official documentation for more details - https://plantuml.com/state-diagram
Key Elements
States
Represented as rounded rectangles (e.g., "Idle", "Processing").
Transitions
Arrows indicating state changes due to events.
Initial & Final States
Black circle (initial state) marks the starting point.
Encircled black dot (final state) indicates the end.
Events & Conditions
Triggers for transitions (e.g., "User logs in").
1. User Authentication Flow
This represents a User Authentication Flow in a system.
Initial State (
[*]
) and Transitions (-->
).Different States (
StateName
):LoggedOut
,LoggingIn
, etc.Looping (
Retry
): Allows reattempting login.
Last updated
Was this helpful?