finos / spring-bot

Spring Boot + Java Integration for Symphony/Teams Chat Platform Bots and Apps
https://springbot.finos.org
Apache License 2.0
60 stars 35 forks source link

Handle List of Primitive in Chat workflow #143

Closed robmoffat closed 3 years ago

robmoffat commented 3 years ago

Bug Report

e.g. List of Strings, Integers.

You can't have a java bean with a property containing a list of String, say:

List someprop;

It kills the templater.

Currently we have added the List of primitive support for String, Integer and Number

robmoffat commented 3 years ago

e.g.

public class Claim {

    enum Status { OPEN, APPROVED, PAID };

    Status status = Status.OPEN;

    List<String> items;  //fails

}
robmoffat commented 3 years ago

We should also use Wrapper classes - e.g. Integer as opposed to int