Hi there,
I am struck while trying to pass a file from super process to sub process.
I looked at the below example by Ciju, but I dont think the RelatedContentRepository which was autowired is available now in the latest version of APS.
I also tried to get that RelatedContentRepository from engine services in my class that implements Java Delegate but I couldnt find it even there.
I am struck and any help is appreciated. Thank you.
My APS version is 1.9
Solved! Go to Solution.
Hi Hari, please have a look at this sample that Sherry Mathews created and contributed to see if this is what you are looking for.
Thanks,
Paul
Hi Hari, please have a look at this sample that Sherry Mathews created and contributed to see if this is what you are looking for.
Thanks,
Paul
Hi Paul,
Thanks for your quick reply. This is what I was looking for.
I can see that he is using dependencies of APS 1.5.0. Not sure if this solution works with dependencies of APS 1.9.
I'll give a try.
Hi Paul and Others,
I am still struck with this one. I tried to import the app that I downloaded from the above github link and it doesnt get imported. I see the below issue in the logs.
(**** Truncated to a few lines). My guess for the issue is that may be app was created in an earlier version of APS.
21-Mar-2019 21:09:29.436 SEVERE [http-nio-8080-exec-14] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [appDispatcher] in context with path [/activiti-app] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at com.activiti.service.runtime.UsageQuotaServiceImpl.checkCreateRuntimeApp(UsageQuotaServiceImpl.java:78)
at com.activiti.service.runtime.RuntimeAppDefinitionServiceImpl.addAppDefinitionForUser(RuntimeAppDefinitionServiceImpl.java:311)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
Now, I tried to create an app by myself. Have used the task listener in the subprocess and at runtime the relatedContentRepository which was autowired was evaluating to null.
My APS version is 1.9.0.3
Any other alternatives ways or solution for this ? Or do you think I missed something in my implementation?
Thanks again !
Hari _ this most expeditious thing to do would be to open a case with our customer support organization and they will get you sorted.
Yes Paul. Opening the case for it.
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.