04-19-2022 05:49 AM
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
04-19-2022 12:09 PM
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.
04-20-2022 04:30 AM
Thanks Abhinav, I will try your solution
Explore our Alfresco products with the links below. Use labels to filter content by product module.