Unable to Autowire in Service Task java class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2017 07:57 AM
Hi,
I am using spring boot with activiti. I have created a simple workflow which is having a single service task ans assigned a java class to this service class. I have one JpaRepository which I am autowiring it in this delegate class. When I start the process, then I am getting NullPointerException on this repository. I think, its not able to get initialized in JavaDelegate class. But I did the same thing in my other service classes and controller classes too and its getting initialized properly. So, is there any way to solve this issue?
- Labels:
-
Alfresco Process Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2017 12:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2017 09:42 AM
It's working. Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2017 09:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2017 02:19 AM
Hey, I have created a service wrapper around the repository class and autowired the wrapper class in delegate class.
