Control Chart Execution by Using Event Actions in a Superstate
The following example shows the use of event actions in a superstate.

Initially, the chart is asleep. State A.A1 is active. Event
E_three occurs and awakens the chart, which processes the event
from the root down through the hierarchy:
The chart root checks to see if there is a valid transition as a result of
E_three. No valid transition exists.State
Aduring actions (durA()) execute and complete.State
Aexecutes and completes theoneventE_threeaction (A_one).State
Achecks its children for valid transitions. No valid transitions exist.State
A1during actions (durA1()) execute and complete.The chart goes back to sleep.
This sequence completes the execution of this Stateflow® chart associated with event E_three.