net.corda.core.messaging / FlowHandle / <init>

<init>

FlowHandle(id: StateMachineRunId, progress: <ERROR CLASS><String>, returnValue: <ERROR CLASS><A>)

FlowHandle is a serialisable handle for the started flow, parameterised by the type of the flows return value.

Parameters

id - The started state machines ID.

progress - The stream of progress tracker events.

returnValue - An Observable emitting a single event containing the flows return value. To block on this value: val returnValue = rpc.startFlow(::MyFlow).returnValue.toBlocking().first()