ProcessRuntime Bean not found

Showing results for 
Search instead for 
Did you mean: 
Member II

ProcessRuntime Bean not found

I have a class where I am trying to autowire processRuntime. The code is simple:


     private ProcessRuntime processRuntime;

I need this object to start my workflow process. But my code fail with the following error:

 required a bean of type 'org.activiti.api.process.runtime.ProcessRuntime' that could not be found.

How do I get the bean of processRuntime in my service. I am working with the following alfresco dependency: