AnsweredAssumed Answered

how to add aspects to a custom type?

Question asked by robjkamp on Jul 26, 2017
Latest reply on Jul 27, 2017 by krutik.jayswal

I'm trying to develop a model that has a custom type and some aspects. Now I have defined a base type called my:document and I want to add an aspect to that type, called my:aspect. I want to have this aspect show up in all the nodes that are from the my:document type and it's children also.

 

I have tried to add this in the model I downloaded from the model manager. I changed the my_model.xml and inserted the mandatory aspect into the mandatory-aspects element as per the developer guide

 

I zipped the model folder and during upload I get an error. The error is "The custom model doesn't support the 'mandatory-aspects' element.". 

 

I run Alfresco Community Edition 201707.

 

The question is the rationale on why the custom model is not accepting the mandatory-aspect. 

Outcomes