AnsweredAssumed Answered

Use of Spring service tasks from Activiti Explorer

Question asked by mdaviot on Oct 15, 2012
Latest reply on Oct 19, 2012 by jbarrez
Hi,

I had previously a question about the use of Spring beans in services tasks.

But actually I need to use these beans from the Activiti Explorer. The idea is to make a simple production followup GUI for the production team using Activiti Explorer so they can see processes in error and with a user task retry the service tasks which failed.

When I execute a service task implement with a Spring bean from Activiti Explorer, I get again this org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'myService' as in my previous post.

I had a look at the source code for StartProcessInstanceClickListener, and I see that runtimeService = ProcessEngines.getDefaultProcessEngine().getRuntimeService(); … exactly what would cause this problem as was said in the previous post.


So in short my questions :
- is it possible to use Spring beans to implement a service task triggered from the Activiti Explorer as it is currently ?
- If yes, what could go wrong in my case ? The code source is available here on dropbox.

Thanks and regards
Michel

Outcomes