Stateflow | ![]() ![]() |
Transitions from a Source to a Destination Based on a Common Event Example
This example shows the behavior of transitions from multiple sources to a single destination based on the same event using a connective junction.
Initially the Stateflow diagram is asleep. State B
is active. Event E_one
occurs and awakens the Stateflow diagram. Event E_one
is processed from the root of the Stateflow diagram down through the hierarchy of the Stateflow diagram:
E_one
. There is a valid transition segment from state B
to the connective junction and from the junction to state C.
B
exit actions (exitB()
) execute and complete.
B
is marked inactive.
C
is marked active.
C
entry actions (entC()
) execute and complete.
This sequence completes the execution of this Stateflow diagram associated with event E_one
.
![]() | Transitions from Multiple Sources to a Common Destination Example | Backtracking Behavior in Flow Graphs Example | ![]() |