public static class ContractUpgradeFlow.Authorise extends FlowLogic<T>
Authorise a contract state upgrade.
This will store the upgrade authorisation in persistent store, and will be queried by ContractUpgradeFlow.Acceptor
during contract upgrade process. Invoking this flow indicates the node is willing to upgrade the class StateAndRef
using
the interface UpgradedContract
class.
This flow will NOT initiate the upgrade process. To start the upgrade process, see class ContractUpgradeFlow.Initiate
.
FlowLogic.Companion
Constructor and Description |
---|
Authorise(StateAndRef<?> stateAndRef,
java.lang.Class<? extends net.corda.core.contracts.UpgradedContract<?,?>> upgradedContractClass)
Authorise a contract state upgrade.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Void |
call()
This is where you fill out your business logic.
|
StateAndRef<?> |
getStateAndRef() |
await, await, call, checkFlowIsNotKilled, checkFlowIsNotKilled, checkFlowPermission, close, flowStackSnapshot, getFlowInfo, getLogger, getOurIdentity, getOurIdentityAndCert, getProgressTracker, getRunId, getServiceHub, initiateFlow, initiateFlow, isKilled, persistFlowStackSnapshot, receive, receiveAll, receiveAllMap, recordAuditEvent, send, sendAll, sendAllMap, sendAndReceive, subFlow, track, trackStepsTree, trackStepsTreeIndex, waitForLedgerCommit, waitForStateConsumption
public Authorise(StateAndRef<?> stateAndRef, java.lang.Class<? extends net.corda.core.contracts.UpgradedContract<?,?>> upgradedContractClass)
Authorise a contract state upgrade.
This will store the upgrade authorisation in persistent store, and will be queried by ContractUpgradeFlow.Acceptor
during contract upgrade process. Invoking this flow indicates the node is willing to upgrade the class StateAndRef
using
the interface UpgradedContract
class.
This flow will NOT initiate the upgrade process. To start the upgrade process, see class ContractUpgradeFlow.Initiate
.
public java.lang.Void call()
This is where you fill out your business logic.
public StateAndRef<?> getStateAndRef()