06-17-2021 04:59 PM
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.
06-18-2021 05:33 AM
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.
06-18-2021 05:33 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.