cancel
Showing results for 
Search instead for 
Did you mean: 

Creating associations via XML doesn't work

kwiesinger
Champ in-the-making
Champ in-the-making

Hi,

I tried to create an association in my model via XML. The model worked fine without the association but as soon as I added it and tried to import my XML I get an error (The existing model doesn't exist anymore) :

Association:

The VPIM:HVDisk is a type which exists and has properties in it. 

Is it possible that I forgot something? Do I need to activate anything?

My community edition is 5.2.

Looking forward to your answers.

Regards

13 REPLIES 13

As Jeff Potts  has explained in his "Working With Custom Content Types in Alfresco" tutorial, Associations come in two flavors: Peer Associations and Child Associations. Peer Associations are just that— they define a relationship between two objects but neither is subordinate to the other. Child Associations, on the other hand, are used when the target of the association (or child) should not exist when the source (or parent) goes away. This works like a cascaded delete in a relational database- Delete the parent and the child goes away.

You need to get familiar with Alfresco content model and terminologies. 

Please go through "Working With Custom Content Types in Alfresco" tutorial:

https://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#associat...

There are other tutorials as well, you must go through these tutorials as well:

https://ecmarchitect.com/alfresco-developer-series-tutorials/

Hope this helps.

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Model Manager doesn't allow editing models that have been configured in XML and bootstrapped through Spring (static models).

Refer this doc for more details: https://docs.alfresco.com/6.0/concepts/admintools-cmm-intro.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Thank you very much for your help, this will help for sure.

Good luck. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)