07-23-2019 07:29 AM
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
07-24-2019 08:45 AM
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:
There are other tutorials as well, you must go through these tutorials as well:
https://ecmarchitect.com/alfresco-developer-series-tutorials/
Hope this helps.
07-24-2019 08:50 AM
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
07-24-2019 09:09 AM
Thank you very much for your help, this will help for sure.
07-24-2019 09:45 AM
Good luck.
Explore our Alfresco products with the links below. Use labels to filter content by product module.