Package net.corda.finance.flows
Class TwoPartyTradeFlow.Buyer
-
- All Implemented Interfaces:
public class TwoPartyTradeFlow.Buyer extends FlowLogic<SignedTransaction>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TwoPartyTradeFlow.Buyer.RECEIVING
public class
TwoPartyTradeFlow.Buyer.VERIFYING
public class
TwoPartyTradeFlow.Buyer.SIGNING
public class
TwoPartyTradeFlow.Buyer.COLLECTING_SIGNATURES
public class
TwoPartyTradeFlow.Buyer.RECORDING
public final class
TwoPartyTradeFlow.Buyer.SharedTx
-
Field Summary
Fields Modifier and Type Field Description private final ProgressTracker
progressTracker
private final <Error class: unknown class>
logger
private final StateMachineRunId
runId
private final ServiceHub
serviceHub
private final Boolean
isKilled
private final PartyAndCertificate
ourIdentityAndCert
private final Party
ourIdentity
-
Constructor Summary
Constructors Constructor Description TwoPartyTradeFlow.Buyer(FlowSession otherSideSession, Party notary, Amount<Currency> acceptablePrice, Class<out OwnableState> typeToBuy)
TwoPartyTradeFlow.Buyer(FlowSession sellerSession, Party notary, Amount<Currency> acceptablePrice, Class<out OwnableState> typeToBuy, Boolean anonymous)
-
Method Summary
Modifier and Type Method Description ProgressTracker
getProgressTracker()
Override this to provide a ProgressTracker. SignedTransaction
call()
This is where you fill out your business logic. -
Methods inherited from class net.corda.core.flows.FlowLogic
await, await, checkFlowIsNotKilled, checkFlowIsNotKilled, checkFlowPermission, close, flowStackSnapshot, getFlowInfo, getLogger, getOurIdentity, getOurIdentityAndCert, getRunId, getServiceHub, initiateFlow, initiateFlow, isKilled, persistFlowStackSnapshot, receive, receive, receiveAll, receiveAllMap, recordAuditEvent, send, sendAll, sendAllMap, sendAndReceive, sendAndReceive, subFlow, track, trackStepsTree, trackStepsTreeIndex, waitForLedgerCommit, waitForStateConsumption
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TwoPartyTradeFlow.Buyer
TwoPartyTradeFlow.Buyer(FlowSession otherSideSession, Party notary, Amount<Currency> acceptablePrice, Class<out OwnableState> typeToBuy)
-
TwoPartyTradeFlow.Buyer
TwoPartyTradeFlow.Buyer(FlowSession sellerSession, Party notary, Amount<Currency> acceptablePrice, Class<out OwnableState> typeToBuy, Boolean anonymous)
-
-
Method Detail
-
getProgressTracker
ProgressTracker getProgressTracker()
Override this to provide a 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.
-
call
SignedTransaction call()
This is where you fill out your business logic.
-
-
-
-