public class CashFlow
extends FlowLogic
Initiates a flow that produces an Issue/Move or Exit Cash transaction.
Modifier and Type | Class and Description |
---|---|
static class |
CashFlow.Companion |
Modifier and Type | Field and Description |
---|---|
static CashFlow.Companion |
Companion |
Constructor and Description |
---|
CashFlow(CashCommand command,
ProgressTracker progressTracker)
Initiates a flow that produces an Issue/Move or Exit Cash transaction.
|
CashFlow(CashCommand command) |
Modifier and Type | Method and Description |
---|---|
CashFlowResult |
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.
|
CashCommand |
getCommand() |
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 CashFlow.Companion Companion
public CashFlow(CashCommand command, ProgressTracker progressTracker)
Initiates a flow that produces an Issue/Move or Exit Cash transaction.
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.
command
- Indicates what Cash transaction to create with what parameters.public CashFlow(CashCommand command)
public CashFlowResult 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 CashCommand getCommand()
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