corda / net.corda.core.flows / SendStateAndRefFlow

SendStateAndRefFlow

open class SendStateAndRefFlow : DataVendingFlow

The SendStateAndRefFlow should be used to send a list of input StateAndRef to another peer that wishes to verify the input's integrity by resolving and checking the dependencies as well. The other side should invoke ReceiveStateAndRefFlow at the right point in the conversation to receive the input state and ref and perform the resolution back-and-forth required to check the dependencies.

Parameters

otherSideSession - the target session.

stateAndRefs - the list of StateAndRef being sent to the otherSideSession.

Constructors

<init>

SendStateAndRefFlow(otherSideSession: FlowSession, stateAndRefs: List<StateAndRef<*>>)

The SendStateAndRefFlow should be used to send a list of input StateAndRef to another peer that wishes to verify the input's integrity by resolving and checking the dependencies as well. The other side should invoke ReceiveStateAndRefFlow at the right point in the conversation to receive the input state and ref and perform the resolution back-and-forth required to check the dependencies.

Inherited Properties

otherSideSession

val otherSideSession: FlowSession

payload

val payload: Any

Inherited Functions

call

open fun call(): Void?

This is where you fill out your business logic.

sendPayloadAndReceiveDataRequest

open fun sendPayloadAndReceiveDataRequest(otherSideSession: FlowSession, payload: Any): UntrustworthyData<Request>

verifyDataRequest

open fun verifyDataRequest(dataRequest: Data): Unit

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.