Generics Data type in process variable in business central

10 views
Skip to first unread message

Joji Joy

unread,
Mar 14, 2025, 3:43:44 AMMar 14
to jBPM Usage
Hello,

I am trying to make an API call using Rest component which returns a result as json list like below,

[
    {
        "firstName": "John",
        "lastName": "Doe"
    },
    {
        "firstName": "Jane",
        "lastName": "Doe"
    }
]

How can I map the result class parameter of generic type in REST Data Assignment to make this work.

Like java.util.List<Person> some thing. Is this possible?
 


Francisco Javier Tirado Sarti

unread,
Mar 14, 2025, 7:16:33 AMMar 14
to Joji Joy, jBPM Usage
You need to use a Json-POJO mapper, check https://github.com/FasterXML/jackson

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jbpm-usage/e44c1c71-82eb-4018-9131-f1549c3bb6ben%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages