public static class AbstractStateReplacementFlow.Instigator<S extends ContractState,T>
extends FlowLogic
Modifier and Type | Class and Description |
---|---|
static class |
Instigator.Companion |
Modifier and Type | Field and Description |
---|---|
static Instigator.Companion |
Companion |
Constructor and Description |
---|
Instigator(StateAndRef<? extends S> originalState,
T modification,
ProgressTracker progressTracker) |
Modifier and Type | Method and Description |
---|---|
AbstractStateReplacementFlow.Proposal<T> |
assembleProposal(StateRef stateRef,
T modification,
SignedTransaction stx) |
kotlin.Pair<net.corda.core.transactions.SignedTransaction,java.lang.Iterable> |
assembleTx() |
StateAndRef<S> |
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.
|
T |
getModification() |
StateAndRef<S> |
getOriginalState() |
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. |
call, getCounterpartyMarker, getLogger, getProgressTracker, getRunId, getServiceHub, getStateMachine, receive, send, sendAndReceive, setStateMachine, subFlow, subFlow, track
public static Instigator.Companion Companion
public Instigator(StateAndRef<? extends S> originalState, T modification, 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. 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 StateAndRef<S> 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 AbstractStateReplacementFlow.Proposal<T> assembleProposal(StateRef stateRef, T modification, SignedTransaction stx)
public kotlin.Pair<net.corda.core.transactions.SignedTransaction,java.lang.Iterable> assembleTx()
public StateAndRef<S> getOriginalState()
public T getModification()
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