Self transitions
A self-transition starts and ends in the same state.
Self-transitions can be used to restart a state.
Using self-transitions in Stately Studio
Make an event into a self-transition
On the canvas
- Right-click the event to open the edit menu.
- Choose Make self transition from the edit menu.
Dragging the transition arrow
- Select the event.
- Grab the circular handle at the arrow end of the transition and drag the handle to connect it back to the source state.