public static class TwoPartyDealFlow.Secondary<U> extends FlowLogic<T>
Abstracted bilateral deal flow participant that is recipient of initial communication.
public static net.corda.finance.flows.TwoPartyDealFlow.Secondary.Companion Companion
public Secondary(@NotNull ProgressTracker progressTracker)
Abstracted bilateral deal flow participant that is recipient of initial communication.
progressTracker
- Override this to provide a class ProgressTracker
. If one is provided and stepped, the framework will do something
helpful with the progress reports e.g record to the audit service. If this flow is invoked as a subflow of another,
then the tracker will be made a child of the current step in the parent. If it's null, this flow doesn't track
progress.
Note that this has to return a tracker before the flow is invoked. You can't change your mind half way through.
public Secondary()
Abstracted bilateral deal flow participant that is recipient of initial communication.
@NotNull public FlowSession getOtherSideSession()
@Suspendable @NotNull public SignedTransaction call()
This is where you fill out your business logic.
@Suspendable @NotNull protected net.corda.finance.flows.TwoPartyDealFlow.Handshake<U> validateHandshake(@NotNull net.corda.finance.flows.TwoPartyDealFlow.Handshake<? extends U> handshake)
@Suspendable @NotNull protected kotlin.Triple<net.corda.core.transactions.TransactionBuilder,java.util.List,java.util.List> assembleSharedTX(@NotNull net.corda.finance.flows.TwoPartyDealFlow.Handshake<? extends U> handshake)
@NotNull public ProgressTracker getProgressTracker()
Override this to provide a class ProgressTracker
. If one is provided and stepped, the framework will do something
helpful with the progress reports e.g record to the audit service. If this flow is invoked as a subflow of another,
then the tracker will be made a child of the current step in the parent. If it's null, this flow doesn't track
progress.
Note that this has to return a tracker before the flow is invoked. You can't change your mind half way through.
class ProgressTracker