I have a class where I am trying to get a reference to the process runtime via the JavaAPI. ( I would like to get the process definition too) The code is simple:
@Autowired
private ProcessRuntime processRuntime;I understand that it's an Activiti class, but all the Activiti examples use it.
I get: No qualifying bean of type 'org.activiti.api.process.runtime.ProcessRuntime' available:
How do I inject any reference to the process engine? I have Delegets and Task listeners that are working. But I need this in the back end of a webscript service class I am writing.