To better organize or reuse your flow code, you can split it into separate files. The
sub-flow action executes the flow file referenced in its
Normally, a sub flow runs until all its instruction have been executed. Then, control is handed over to the parent flow again.
You can return at any point in your sub flow with a (usually conditional)
<flow><if test="…"><sub-flow src="my-sub-sub-flow.xml"/><return/></if>…</flow>
src file is resolved relatively to the calling flow file.