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.
Solved! Go to Solution.
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.
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.