sub-flow Action
Last updated
Was this helpful?
Last updated
Was this helpful?
To better organize or reuse your code, you can split it into separate files. The sub-flow
action executes the flow file referenced in its src="…"
attribute.
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) .
The terminates all flows. The parent flow will not be continued. Terminating actions like or terminate the whole request, too.
my-sub-flow.xml
:
The src
file is resolved relatively to the calling flow file.