Thiago Leão Moreira 6 Years Ago Nice post and functionality! Please sign in to reply. Reply as... Cancel
Martin Dulak 6 Years Ago Hello David,thanks for the post, the functionality you present looks really great. However I have some problems making it work. I've tried implement my custom context provider, I tried to copy-paste User provider from Liferay GIT and I have also tried building and running your project. Every time without any success.I've tried debugging #createContext method of providers but the execution never got there. Is there anything else I have to do with my environment to make Context Providers work? I'm running DXP SP6 version.Thank you,Martin Please sign in to reply. Reply as... Cancel
Eric COQUELIN 4 Years Ago - Edited Unfortunately, one step is missing. I know your post is already 2 years ago but for the potential readers, following step is missing @Override public Set<Object> getSingletons() { Set<Object> singletons = new HashSet<>(); singletons.add(_companyContextProvider); singletons.add(_localeContextProvider); singletons.add(_userContextProvider); singletons.add(_workflowListedTaskResource); singletons.add(_workflowTaskResource); return singletons; } Check WorkflowJaxRsApplication.java in the workflow REST module. I wish I could enable this provider without using singletons.add() and using only OSGI annotations. Please sign in to reply. Reply as... Cancel David H Nebinger Eric COQUELIN 4 Years Ago - Edited Thanks, Eric. Yeah, this post isn't just two years old, it was also written for Liferay 7.0 IIRC. It doesn't surprise me that the code needed a little bit of TLC. Thanks for the update! Please sign in to reply. Reply as... Cancel
David H Nebinger Eric COQUELIN 4 Years Ago - Edited Thanks, Eric. Yeah, this post isn't just two years old, it was also written for Liferay 7.0 IIRC. It doesn't surprise me that the code needed a little bit of TLC. Thanks for the update! Please sign in to reply. Reply as... Cancel