State Diagram
Last updated
Was this helpful?
Last updated
Was this helpful?
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 -
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").
This represents a User Authentication Flow in a system.
Initial State ([*]
) and Transitions (-->
).
Different States (StateName
): LoggedOut
, LoggingIn
, etc.
Looping (Retry
): Allows reattempting login.