i want to run ContractUpgradeFlow.Initiate flow in java project. just like this:
CordaRPCOps proxy = client.start(rpcUsername, rpcPassword).getProxy();
proxy.startFlowDynamic(ContractUpgradeFlow.Initiate.class,stateAndRef,newContractClass.class);
but has error :
Required type:Class<? extends FlowLogic<? extends T>>
Provided :Class<Initiate>
reason: no instance(s) of type variable(s) T exist so that Initiate conforms to FlowLogic<? extends T>
the kotlin version is this:
https://github.com/corda/samples/blob/release-V4/explicit-cordapp-upgrades/src/main/kotlin/com/upgrade/client/ClientWithLegacyConstraint.kt
How can i run ContractUpgradeFlow.Initiate in java project?