AnsweredAssumed Answered

Not able to use spring bean in service task

Question asked by manish.luste on Nov 21, 2018
Latest reply on Dec 11, 2018 by maxlich

Hello Everyone,

         I want to create custom beans in Alfresco Process Service 1.9, for that i'm following the  Spring Beans | Alfresco Documentation. As per this i have create one java class which is registered as bean and having one method that called in APS service task's expression.

 

 

but i got an error while starting process : 

 

org.activiti.engine.ActivitiException: Unknown property used in expression: ${helloWorldBean.sayHello(execution)}
...
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'helloWorldBean'
...

 

It will be really helpful if someone will let me know what kind of configuration is missing. Also just wanted to confirm that I've added my project's exported jar into "/alfresco/process-services-1.9.0/tomcat/webapps/activiti-app/WEB-INF/lib". Correct me if this is not the desired folder path to add the project jar file. 

 

best regards,

Manish Luste 

Outcomes