cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Bean Registry

marco_altieri_7
Confirmed Champ
Confirmed Champ
I do not find in the documentation why the activiti bean registry registers beans by their class name instead of by id.

I think that it would help to know the reason to better understand how it works.

This solution seems less flexible because I cannot reuse the same class to define two different beans.
3 REPLIES 3

marco_altieri_7
Confirmed Champ
Confirmed Champ
Actually it is not the activiti bean registry but the Alfresco BaseJavaDelegate that uses the name instead of the ID. This can be easily changed.

jbarrez
Star Contributor
Star Contributor
Sorry, this is the Activiti forum, we can't do nothing about the BaseJavaDelegate in Alfresco.

marco_altieri_7
Confirmed Champ
Confirmed Champ
I understand. The best solution for anyone that is using Activiti in the Alfresco repository is to re-implement/extend BaseJavaDelegate registering the bean using its id and not the class name: it's not difficult using the BeanNameAware interface.