ContractUpgradeFlow.Initiate
Keywords: net.corda.core.flows.ContractUpgradeFlow.Initiate class
Date: 2023-09-18

net.corda.core.flows

## Class ContractUpgradeFlow.Initiate<OldState extends ContractState,NewState extends ContractState>

- net.corda.core.flows.ContractUpgradeFlow.Initiate<OldState,NewState>

- Enclosing class:
    ContractUpgradeFlow

      @InitiatingFlow
       @StartableByRPC
      public static class ContractUpgradeFlow.Initiate<OldState extends ContractState,NewState extends ContractState>

  This flow begins the contract upgrade process.

- - ### Constructor Detail

    - #### Initiate

          public Initiate(@NotNull
                          StateAndRef<? extends OldState> originalState,
                          @NotNull
                          java.lang.Class<? extends net.corda.core.contracts.UpgradedContract<? super OldState,? extends NewState>> newContractClass)

      This flow begins the contract upgrade process.

  - ### Method Detail

    - #### assembleTx

          @Suspendable
           @NotNull
          protected net.corda.core.flows.AbstractStateReplacementFlow.UpgradeTx assembleTx()

      Build the upgrade transaction.

      Returns:
        the transaction