public static class NotaryFlow.Client
extends FlowLogic
A flow to be used by a party for obtaining signature(s) from a class NotaryService
ascertaining the transaction
time-window is correct and none of its inputs have been used in another completed transaction.
In case of a single-node or Raft notary, the flow will return a single signature. For the BFT notary multiple signatures will be returned – one from each replica that accepted the input state commit.
class NotaryService
Modifier and Type | Class and Description |
---|---|
static class |
Client.Companion |
Modifier and Type | Field and Description |
---|---|
static Client.Companion |
Companion |
Constructor and Description |
---|
Client(SignedTransaction stx,
ProgressTracker progressTracker)
A flow to be used by a party for obtaining signature(s) from a
class NotaryService ascertaining the transaction
time-window is correct and none of its inputs have been used in another completed transaction. |
Client(SignedTransaction stx) |
Modifier and Type | Method and Description |
---|---|
java.util.List<net.corda.core.crypto.TransactionSignature> |
call()
This is where you fill out your business logic.
|
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, flowStackSnapshot, getCurrentTopLevel, getFlowInfo, getLogger, getOurIdentity, getOurIdentityAndCert, getProgressTracker, getRunId, getServiceHub, initiateFlow, persistFlowStackSnapshot, receive, recordAuditEvent, send, sendAndReceive, sleep, subFlow, track, waitForLedgerCommit
public static Client.Companion Companion
public Client(SignedTransaction stx, ProgressTracker progressTracker)
A flow to be used by a party for obtaining signature(s) from a class NotaryService
ascertaining the transaction
time-window is correct and none of its inputs have been used in another completed transaction.
In case of a single-node or Raft notary, the flow will return a single signature. For the BFT notary multiple signatures will be returned – one from each replica that accepted the input state commit.
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.
class NotaryService
public Client(SignedTransaction stx)
public java.util.List<net.corda.core.crypto.TransactionSignature> call()
This is where you fill out your business logic.
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