cancel
Showing results for 
Search instead for 
Did you mean: 

Get List tasks using REST API

manas__
Champ in-the-making
Champ in-the-making
Hi everyone,

I need get List<UserTask> from Activiti via REST API (localhost:8080/activiti-rest/service/tasks?assignee=kermit). How can I get correct list of entities on client side?

List<UserTask> u = (List<UserTask>) response.getEntity(UserTask.class); return

java.lang.IllegalArgumentException: No more parsing elements.

Can you help me please?

Thanks a lot.
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Not sure if that's the way to pare a list of user-tasks. What framework are you using to parse the entity?

manas__
Champ in-the-making
Champ in-the-making
Hallo,

I solved a problem. I use Jersey and the solution was use for example object ListTask and one attribut is ArrayList<Task>… this works fine.

REST returns string which Jersey can parse to ListTask obejct.