Does anyone know of an easy way to bulk update a property on lots of documents?
The situation I have is that a new property has been added to our content model. We need to set the default value of all existing content that has been affected by this update.
Normally I would write a bit of JS to find all the documents, then iterate through each setting the property.
But here's the catch...the system has quite a lot of folder rules and behaviour policy extensions associated to my content types. If I just run my JS, it will trigger these rules and behaviour policies. I need a way of updating the property without any of this happening.
If you want to bulk update a property on a lot of documents you can either write a script to iterate over the docs or you can use CMIS, because CMIS 1.1 supports bulk operations against collections of objects.
Just to clarify, if I write my "property update" program as a standalone CMIS application - I'm not going to be able to disable behaviours? To do that, i need to use the Java API which means implementing something like a java-backed web script that I deploy to alfresco and then call ? Or did I miss something here?