Hi all,
i created a custom model type using the "Model Manager" in Alfresco 7.0 Community Edition. After the creation of the model, I downloaded the zip file to set the tokenized property=true. Then i reuploaded the zip file model and now it is in use and a related "custom search" has been developed and everything is working well.
Sometimes may occur to update a content model (in use) by adding some new properties which needs to be tokenizible too. So I cannot deactivate the "in use" model. Which is the best procedure to update?
Any help is appreciated,
Thanks
Michele
Model Manager is a tool usually for BA's and learners to play around with content modeling. It is not a recommended approach to define the model to be used in production as it has its own limitations.
For incremental changes (as a better practice), you also need to update the model version that is part of the content model and redeploy. See example: https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/resources/alfres...
Same way, an active model can't be edited/updated. You have to deactivate in order to update it.
The recommended approach for regular development is to use content model bootstrapping. Take a look at this doc: https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/content-model/#definedeplo...
With boostrapping approach you can re-deploy the updated model from backend (there may be a down time depending on your setup). Note that any boostrapped models are not visible in model manager.
Thanks Abhinav, I will try your solution
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.