Skip to content

Suport Spring ParameterizedTypeReference for returnTypes of Workflow CallActivity() #1563

@salaboy

Description

@salaboy

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 returnType;

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

Steps to Reproduce the Problem

Release Note

RELEASE NOTE:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions