public static class TwoPartyDealFlow.Primary
extends FlowLogic
Abstracted bilateral deal flow participant that initiates communication/handshake.
There's a good chance we can push at least some of this logic down into core flow logic and helper methods etc.
Modifier and Type | Class and Description |
---|---|
static class |
Primary.Companion |
Modifier and Type | Field and Description |
---|---|
static Primary.Companion |
Companion |
Constructor and Description |
---|
Primary(ProgressTracker progressTracker)
Abstracted bilateral deal flow participant that initiates communication/handshake.
|
Primary()
Abstracted bilateral deal flow participant that initiates communication/handshake.
|
Modifier and Type | Method and Description |
---|---|
SignedTransaction |
call()
This is where you fill out your business logic. The returned object will usually be ignored, but can be
helpful if this flow is meant to be used as a subflow.
|
DigitalSignature.WithKey |
computeOurSignature(SignedTransaction partialTX) |
java.lang.Class<?> |
getCounterpartyMarker(Party party)
|
java.security.KeyPair |
getMyKeyPair() |
NodeInfo |
getNotaryNode() |
Party |
getOtherParty() |
UntrustworthyData<net.corda.core.transactions.SignedTransaction> |
getPartialTransaction() |
java.lang.Object |
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. 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. |
SignedTransaction |
verifyPartialTransaction(UntrustworthyData<net.corda.core.transactions.SignedTransaction> untrustedPartialTX) |
call, getCounterpartyMarker, getLogger, getProgressTracker, getRunId, getServiceHub, getStateMachine, receive, send, sendAndReceive, setStateMachine, subFlow, subFlow, track, waitForLedgerCommit
public static Primary.Companion Companion
public Primary(ProgressTracker progressTracker)
Abstracted bilateral deal flow participant that initiates communication/handshake.
There's a good chance we can push at least some of this logic down into core flow logic and helper methods etc.
progressTracker
- Override this to provide a class ProgressTracker
. If one is provided and stepped, the framework will do something
helpful with the progress reports. 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 Primary()
Abstracted bilateral deal flow participant that initiates communication/handshake.
There's a good chance we can push at least some of this logic down into core flow logic and helper methods etc.
public java.lang.Object getPayload()
public NodeInfo getNotaryNode()
public Party getOtherParty()
public java.security.KeyPair getMyKeyPair()
public java.lang.Class<?> getCounterpartyMarker(Party party)
public UntrustworthyData<net.corda.core.transactions.SignedTransaction> getPartialTransaction()
public SignedTransaction verifyPartialTransaction(UntrustworthyData<net.corda.core.transactions.SignedTransaction> untrustedPartialTX)
public SignedTransaction call()
This is where you fill out your business logic. The returned object will usually be ignored, but can be helpful if this flow is meant to be used as a subflow.
public DigitalSignature.WithKey computeOurSignature(SignedTransaction partialTX)
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. 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