cancel
Showing results for 
Search instead for 
Did you mean: 

How to update a Content Model in use

MicheleTerlizzi
Champ on-the-rise
Champ on-the-rise

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

2 REPLIES 2

abhinavmishra14
World-Class Innovator
World-Class Innovator

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. 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Thanks Abhinav, I will try your solution