cancel
Showing results for 
Search instead for 
Did you mean: 

Autowire ProcessRuntime

mangar
Star Contributor
Star Contributor

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. 

1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

It looks like you are trying to auto-wire a component that does not exist in the Activiti 5.23 release included in ACS 7.0. With raw Activiti examples you have to be careful about which of them actually apply to Alfresco, and keep in mind that the ACS included version is actually 2 major versions behind the current core Activiti release. This is not going to change anytime soon, as Alfresco's long term strategy is to actually remove Activiti from ACS, replace it with a more lightweight, simple process system, and integrate with out-of-process Activiti-based systems for the more complex processes that do need a fully fledged process system.

View answer in original post

1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

It looks like you are trying to auto-wire a component that does not exist in the Activiti 5.23 release included in ACS 7.0. With raw Activiti examples you have to be careful about which of them actually apply to Alfresco, and keep in mind that the ACS included version is actually 2 major versions behind the current core Activiti release. This is not going to change anytime soon, as Alfresco's long term strategy is to actually remove Activiti from ACS, replace it with a more lightweight, simple process system, and integrate with out-of-process Activiti-based systems for the more complex processes that do need a fully fledged process system.