I want to define Workflow method arguments and return values as Java interface so the API is generic (without using Java generic since I don’t know all implementations of the interface). Is this supported OOTB?
I understand the default JSON data converter doesn’t know how to de/serialize interface/abstract classes. Is the only way is to provide my own data converter? If yes, then it’s not “elegant” since I can only provide data converter once per Temporal workflow client which my app has only one, therefore, I have to “inspect” the payload type, i.e., having conditional which I don’t want to do and I don’t want one workflow client per workflow type.