In one requirement we need to fetch data from Alfresco Activiti. We are using RESTTemplate call that returns us list of tasks for the particular user. The only problem is, the response is in JSON format and not showing the type of the corresponding JAVA class. Can anyone tell me that on which java class I need to cast the response?
Are you trying to the Activiti APIs from a external java application and trying to parse the rest response? JSON is the API response standard in Activiti. If you need to convert the JSON string to a POJO, there are plenty of libraries out there which can help. eg: GitHub - FasterXML/jackson: Main Portal page for Jackson project
Yes, I am calling Activiti from my java app and getting the JSON. I have Jackson in my project. But I am not sure which POJO I need to create out of the JSON response form activiti.
For example, the above JSON response, I am able to create ResultListDataRepresentation POJO. It also shows the data size 1. I am not sure to which class I need to cast this list of AbstractRepresentation. But when I print the data as string on console, it prints the whole JSON with data.