public class FinalityFlow
extends FlowLogic
Finalise a transaction by notarising it, then recording it locally, and then sending it to all involved parties.
Modifier and Type | Class and Description |
---|---|
static class |
FinalityFlow.Companion |
Modifier and Type | Field and Description |
---|---|
static FinalityFlow.Companion |
Companion |
Constructor and Description |
---|
FinalityFlow(SignedTransaction transaction,
java.util.Set<net.corda.core.crypto.Party> participants,
ProgressTracker progressTracker)
Finalise a transaction by notarising it, then recording it locally, and then sending it to all involved parties.
|
FinalityFlow(SignedTransaction transaction,
java.util.Set<net.corda.core.crypto.Party> participants) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
java.util.Set<net.corda.core.crypto.Party> |
getParticipants() |
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 |
getTransaction() |
call, getCounterpartyMarker, getLogger, getProgressTracker, getRunId, getServiceHub, getStateMachine, receive, send, sendAndReceive, setStateMachine, subFlow, subFlow, track
public static FinalityFlow.Companion Companion
public FinalityFlow(SignedTransaction transaction, java.util.Set<net.corda.core.crypto.Party> participants, ProgressTracker progressTracker)
Finalise a transaction by notarising it, then recording it locally, and then sending it to all involved parties.
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.
transaction
- to commit.participants
- a list of participants involved in the transaction.public FinalityFlow(SignedTransaction transaction, java.util.Set<net.corda.core.crypto.Party> participants)
public void 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 SignedTransaction getTransaction()
public java.util.Set<net.corda.core.crypto.Party> getParticipants()
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