corda / net.corda.core.flows / ContractUpgradeFlow / Authorise

Authorise

@StartableByRPC class Authorise : FlowLogic<Void?>

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 StateAndRef using the UpgradedContract class.

This flow will NOT initiate the upgrade process. To start the upgrade process, see Initiate.

Constructors

<init>

Authorise a contract state upgrade.

Authorise(stateAndRef: StateAndRef<*>, upgradedContractClass: Class<out UpgradedContract<*, *>>)

Properties

stateAndRef

val stateAndRef: StateAndRef<*>

Functions

call

This is where you fill out your business logic.

fun call(): Void?