State
A State is the fundamental unit of behavior in a state machine. It represents a named mode in your application’s flow.
When to Use a State
- Representing distinct application modes (e.g., Login, Dashboard, Settings).
- Encapsulating a set of UI behaviors or animations tied to that mode.
- Defining clear events in a user flow.
Properties
Property | Details |
---|---|
Name | Name of the State. |
Initial | The initial substate to activate. |
On done | State to transition to once all substates are done. |
Entry actions | Actions to trigger upon entering the State. |
Exit actions | Actions to trigger upon exiting the State |
Activities | Activities tied to the state. |
Services | Services to invoke from the state. |
Transitions | Events that trigger a transition. A target state and condition can be set as part of the transition. |