Concept Flow - Event-driven state machine
Start
Wait for Event
Event Received?
No→Wait for Event
Yes
Process Event
Change State if Needed
Perform Actions
Back to Wait for Event
The state machine waits for events, processes them, changes state if needed, performs actions, then waits for the next event.