@StartableByRPC 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
.
public Authorise(@NotNull StateAndRef<?> stateAndRef, @NotNull 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
.
@Suspendable @Nullable public java.lang.Void call()
This is where you fill out your business logic.
@NotNull public StateAndRef<?> getStateAndRef()