I have a system setup like the sample stateflow:

Condition1 Occurs and we go to Sub1. If Condition3 then occurs will it bring us back to Test1? Similarly if we get to sub2 through Condition1 and Condition2 and then Condition4 occurs will we go back to Test1?
You can test this for yourself, define the
ConditionXvariables as local symbols to that Stateflow model, and some variablexwhich you can look at while stepping through the Stateflow evaluation. Set a breakpoint where theCondition1transition is (right click the line, add breakpoint) and then run your model to step through it.In my screenshots I've shortened the
ConditionXnames tocX.In short, no you won't re-enter
Test1without a state transition back to it fromSuper. Control will be returned to theSuperstate (out of theSub1state) and then follow the default transition back intoSub1.So If
c1andc3are true,c2is false.Test1, setx=0.Test1toSuperbecausec1is true.Sub1, setx=1.Superbecausec2is false (no transition toSub2) butc3is true.x=1does not change again.If
c2is true then you transition intoSub2instead of step 4. above,x=2.If
c4is also true then you transition out ofSub2back intoSuper, and follow the default transition back intoSub1.If you want to return to
Test1then you need to add a default transition fromSupertoTest1. Note that in this trivial exampleCondition1is always true, so it would then immediately transition back intoSuperandSub1.