corda / net.corda.core.flows / ReceiveStateAndRefFlow

ReceiveStateAndRefFlow

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.

Constructors

<init>

The ReceiveStateAndRefFlow should be called in response to the SendStateAndRefFlow.

ReceiveStateAndRefFlow(otherSideSession: FlowSession)

Functions

call

This is where you fill out your business logic.

fun call(): List<StateAndRef<T>>

Extension Functions

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>>