05-15-2017 10:20 AM
I am currently developping a java jee application using activiti as process engine and alfresco as ged.i am using mvc design pattern and micro services to make rest calls for the backend project.I want to pass a list of ProcessInstances via the controller,but i got this error.
By the way the service works fine when i test it without rest call.
this is my controller:
@RestController
public class CourriersArrivésController {
CourriersArrivésServices courriersArrivésServices;
@RequestMapping(value = "/listCourriersArrivés", method = RequestMethod.GET, produces = "application/json")
@ResponseBody
public List<ProcessInstance> getAllCourriers(){
courriersArrivésServices=new CourriersArrivésImpl();
List<ProcessInstance> listeCourrier = courriersArrivésServices.getListCourriersArrivées() ;
return listeCourrier ;
}
}
05-15-2017 11:57 AM
I actually dont have an answer as to why you are getting this error.
However, I see a very similar error has been experienced (with a work around) in this forum thread:
java - Activiti candidate group assignment implementation - Stack Overflow
Hope this helps,
greg
05-15-2017 12:18 PM
yeah i have already did the same
05-22-2017 02:35 PM
Hmm, When you say it works when you test without the rest call, how are you calling it? That may give a hint to the reason.
G
Explore our Alfresco products with the links below. Use labels to filter content by product module.