public static class TwoPartyDealFlow.Instigator
extends Primary
One side of the flow for inserting a pre-agreed deal.
Primary.Companion
Companion
Constructor and Description |
---|
Instigator(FlowSession otherSideSession,
TwoPartyDealFlow.AutoOffer payload,
ProgressTracker progressTracker)
One side of the flow for inserting a pre-agreed deal.
|
Modifier and Type | Method and Description |
---|---|
void |
checkProposal(SignedTransaction stx) |
Party |
getNotaryParty() |
FlowSession |
getOtherSideSession() |
TwoPartyDealFlow.AutoOffer |
getPayload() |
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. |
call, checkProposal, getNotaryParty, getOtherSideSession, getPayload, getProgressTracker
await, await, call, checkFlowIsNotKilled, checkFlowIsNotKilled, checkFlowPermission, close, flowStackSnapshot, getFlowInfo, getLogger, getOurIdentity, getOurIdentityAndCert, getProgressTracker, getRunId, getServiceHub, initiateFlow, initiateFlow, isKilled, persistFlowStackSnapshot, receive, receiveAll, receiveAllMap, recordAuditEvent, send, sendAll, sendAllMap, sendAndReceive, subFlow, track, trackStepsTree, trackStepsTreeIndex, waitForLedgerCommit, waitForStateConsumption
public Instigator(FlowSession otherSideSession, TwoPartyDealFlow.AutoOffer payload, ProgressTracker progressTracker)
One side of the flow for inserting a pre-agreed deal.
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 Party getNotaryParty()
public void checkProposal(SignedTransaction stx)
public FlowSession getOtherSideSession()
public TwoPartyDealFlow.AutoOffer getPayload()
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