net.corda.node.api / APIServer / invokeFlowSync

# invokeFlowSync

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

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.