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 ;
}
}
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
yeah i have already did the same
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
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.