public static class TwoPartyTradeFlow.Seller
extends FlowLogic
Modifier and Type | Class and Description |
---|---|
static class |
Seller.Companion |
Modifier and Type | Field and Description |
---|---|
static Seller.Companion |
Companion |
Constructor and Description |
---|
Seller(Party otherParty,
NodeInfo notaryNode,
StateAndRef<? extends net.corda.core.contracts.OwnableState> assetToSell,
Amount<java.util.Currency> price,
AbstractParty me,
ProgressTracker progressTracker) |
Modifier and Type | Method and Description |
---|---|
SignedTransaction |
call()
This is where you fill out your business logic.
|
StateAndRef<net.corda.core.contracts.OwnableState> |
getAssetToSell() |
AbstractParty |
getMe() |
NodeInfo |
getNotaryNode() |
Party |
getOtherParty() |
Amount<java.util.Currency> |
getPrice() |
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, checkFlowPermission, getCounterpartyMarker, getLogger, getProgressTracker, getRunId, getServiceHub, receive, recordAuditEvent, send, sendAndReceive, subFlow, track, waitForLedgerCommit
public static Seller.Companion Companion
public Seller(Party otherParty, NodeInfo notaryNode, StateAndRef<? extends net.corda.core.contracts.OwnableState> assetToSell, Amount<java.util.Currency> price, AbstractParty me, ProgressTracker progressTracker)
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 SignedTransaction call()
This is where you fill out your business logic.
public Party getOtherParty()
public NodeInfo getNotaryNode()
public StateAndRef<net.corda.core.contracts.OwnableState> getAssetToSell()
public Amount<java.util.Currency> getPrice()
public AbstractParty getMe()
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