dapr / dapr/java-sdk

Suport Spring ParameterizedTypeReference for returnTypes of Workflow CallActivity()

Open
#1,563 0 comments 0 reactions 0 assignees View on GitHub
kind/bug
Dominant language
Java
Stars
300
Forks
230
Avg merge
1d 20h
Merged PRs (30d)
4

Description

## Expected Behavior

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

```
new ParameterizedTypeReference>(){}
```

## Actual Behavior

We only support Class returnType;

```
default Task callActivity(String name, Object input, Class returnType)
```

## Steps to Reproduce the Problem

## Release Note

RELEASE NOTE:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.