ReceiveStateAndRefFlow
Keywords: net.corda.core.flows.ReceiveStateAndRefFlow class
Date: 2023-09-18

net.corda.core.flows

## Class ReceiveStateAndRefFlow<T extends ContractState>

- net.corda.core.flows.FlowLogic<T>
- - net.corda.core.flows.ReceiveStateAndRefFlow<T>

-     public class ReceiveStateAndRefFlow<T extends ContractState>
      extends FlowLogic<T>

  The `class ReceiveStateAndRefFlow` should be called in response to the `class SendStateAndRefFlow`.

  This flow is a combination of FlowSession.receive and resolve. This flow will receive a list of `class StateAndRef` and perform the resolution back-and-forth required to check the dependencies. The flow will return the list of `class StateAndRef` after it is resolved.

  See Also:
    `class ReceiveStateAndRefFlow`, `class SendStateAndRefFlow`, `class StateAndRef`, `class StateAndRef`

- - ### Constructor Detail

    - #### ReceiveStateAndRefFlow

          public ReceiveStateAndRefFlow(@NotNull
                                        FlowSession otherSideSession)

      The `class ReceiveStateAndRefFlow` should be called in response to the `class SendStateAndRefFlow`.

      This flow is a combination of FlowSession.receive and resolve. This flow will receive a list of `class StateAndRef` and perform the resolution back-and-forth required to check the dependencies. The flow will return the list of `class StateAndRef` after it is resolved.

      See Also:
        `class ReceiveStateAndRefFlow`, `class SendStateAndRefFlow`, `class StateAndRef`, `class StateAndRef`

  - ### Method Detail

    - #### call

          @Suspendable
           @NotNull
          public java.util.List<net.corda.core.contracts.StateAndRef> call()

      This is where you fill out your business logic.