class ReceiveStateAndRefFlow<out T : ContractState> : FlowLogic<@JvmSuppressWildcards List<StateAndRef<T>>>
The ReceiveStateAndRefFlow should be called in response to the SendStateAndRefFlow.
This flow is a combination of FlowSession.receive and resolve. This flow will receive a list of StateAndRef and perform the resolution back-and-forth required to check the dependencies. The flow will return the list of StateAndRef after it is resolved.
<init> |
The ReceiveStateAndRefFlow should be called in response to the SendStateAndRefFlow. ReceiveStateAndRefFlow(otherSideSession: FlowSession) |
call |
This is where you fill out your business logic. fun call(): List<StateAndRef<T>> |
receiveAll |
Suspends until a message has been received for each session in the specified sessions. fun FlowLogic<*>.receiveAll(session: Pair<FlowSession, Class<out Any>>, vararg sessions: Pair<FlowSession, Class<out Any>>): Map<FlowSession, UntrustworthyData<Any>> fun <R : Any> FlowLogic<*>.receiveAll(receiveType: Class<R>, session: FlowSession, vararg sessions: FlowSession): List<UntrustworthyData<R>> fun <R : Any> FlowLogic<*>.receiveAll(session: FlowSession, vararg sessions: FlowSession): List<UntrustworthyData<R>> |