java-sdk icon indicating copy to clipboard operation
java-sdk copied to clipboard

Suport Spring ParameterizedTypeReference for returnTypes of Workflow CallActivity()

Open salaboy opened this issue 3 months ago • 0 comments

Expected Behavior

When calling a Workflow activity, we should support parameterized types for return types, as it is supported in Spring:

new ParameterizedTypeReference<List<OrderItem>>(){}

Actual Behavior

We only support Class<V> returnType;

default <V> Task<V> callActivity(String name, Object input, Class<V> returnType)

Steps to Reproduce the Problem

Release Note

RELEASE NOTE:

salaboy avatar Sep 24 '25 14:09 salaboy