Hello,
I'm confused of difference between custom model created using model manager in admin tools of share and custom model created using someModel.xml file in content-tutorial-platform-jar(filepath:$TUTORIAL_HOME/content-tutorial-platform-jar/src/main/resources/alfresco/module/content-tutorial-platform-jar/model).
I had a few questions about this
1) Why alfresco provided two ways to create custom model and what is the difference?
2)Can we perform advanced search by custom model created from anyone of two ways?
Thanks
Ajay
Creating a custom model via the model manager is an extremely restricted way of creating a model. The tools is a minimal viable product and as such only provides access to maybe 60-70% of the features. It also adds various issues around model lifecycle management and potential reuse. The Content Model Manager in Share was implemented as an after-thought to support prototyping / trivial customization use cases.
In my point of view, there is only one way to define custom models, and the Content Model Manager is "just" a tool that allows non-technical people to create trivial models with a limited scope (and still shoot themselves in the foot) without having to understand much of the underlying technical impications.
Since the Content Model Manager creates a model just as if that model would have been defined in XML, there are no differences with regards to features that work on nodes using types / aspects / properties from that model. Search works just the same....
Completely agree with Axel. Do not use the Model Manager unless you are a "power user" who just needs to create a quick type or aspect and you have no plans on getting a developer involved at any point. Once that happens, the developer will most likely ask you to export the model so it can be placed in a proper SDK-based project and source code controlled and that's not straightforward if the model is already in use.
Associations is one example of something you cannot define in the model manager.
Thanks Axel
Thanks Jeff Potts
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.