I am trying to invoke hellow world example Flow through RPC Client. As per the documentation, I have to call startFlowDynamic to invoke the flow. But I am unable to code the startflowdynamic method call.
Integer iouValue=99;
Party otherParty= nameornull("O=PartyB,L=New York,C=US");
proxy.startFlowDynamic(com.template.IOUFlow,iouValue,otherParty);
logger.info("{}", nodes);
Error log
Error:Error:(48, 14) java: method startFlowDynamic in interface net.corda.core.messaging.CordaRPCOps cannot be applied to given types; required: java.lang.Class>,java.lang.Object[] found: com.template.flows.IOUFlow,java.lang.Integer,net.corda.core.identity.Party reason: cannot infer type-variable(s) T (argument mismatch; com.template.flows.IOUFlow cannot be converted to java.lang.Class>
Please help