Purpose of State in State Machine

Hi @edmondlaw
Welcome to UiPath,

In State Machine, the Exit State activity is optional and mainly used for cleanup tasks, logging, or finalizing operations before leaving a state. If everything is handled in Entry State and transitions, you may not need it. However, use Exit State when you require actions that must execute only when leaving a state, regardless of which transition occurs.

Happy Automation