You just need the appropriate transitions in each state of the subflow in the calling thread to do what you want. The final state identifier in your substream is what will be used as the identifier of the event that you can jump into your call flow.
. , , . return ( id - , ).
, . , , . , , .
, , :
<end-state id="back"/>
, :
<subflow-state id="do-some-sub" flow="some-sub">
< ... input variables, expressions, etc ... />
<transition on="back" to="some-state"/>
</subflow-state>
, - . , , , , , . , , - , ( "" ).