ContractUpgradeFlow.Initiate - corda

corda / net.corda.core.flows / ContractUpgradeFlow / Initiate

# Initiate

`@InitiatingFlow @StartableByRPC class Initiate<OldState : ContractState, out NewState : ContractState> : Instigator<OldState, NewState, Class<out UpgradedContract<OldState, NewState>>>`

This flow begins the contract upgrade process.

### Constructors

#### <init> | This flow begins the contract upgrade process. `Initiate(originalState: StateAndRef<OldState>, newContractClass: Class<out UpgradedContract<OldState, NewState>>)`

### Functions

#### assembleTx | Build the upgrade transaction. `fun assembleTx(): UpgradeTx`