sub Flow
Executes the given SubFlow.
This function returns once the SubFlow completes, returning either:
Any open FlowSessions created within a SubFlow annotated with InitiatingFlow are sent:- Session close messages after successfully completing the SubFlow.
- Session error messages when an exception is thrown from the SubFlow.
Return
The result of executing call.
Parameters
sub Flow
The SubFlow to execute.
<R>
The type returned by subFlow.
See also
Throws
Corda Runtime Exception
General type of exception thrown by most Corda APIs.