net.corda.node.internal / APIServerImpl / invokeFlowSync

# invokeFlowSync

`fun invokeFlowSync(type: FlowRef, args: Map<String, Any?>): Any?`
Overrides APIServer.invokeFlowSync

This method would not return until the flow is finished (hence the "Sync").

Longer term wed add an Async version that returns some kind of FlowInvocationRef that could be queried and would appear on some kind of event message that is broadcast informing of progress.

Will throw exception if flow fails.