cancel
Showing results for 
Search instead for 
Did you mean: 

Help required to understand versioning

mike001
Champ in-the-making
Champ in-the-making
Hello,

I've been reading through the documentation to better understand versioning in Alfresco 4 but I can't work out what exactly gets versioned.

If I create a new version of a content item will the old version retain the values of all properties including those applied through aspects or is it only the actual document (i.e the word, xls, html file etc) that's versioned?

Many thanks,

Mike.
7 REPLIES 7

mrogers
Star Contributor
Star Contributor
It depends…

You can version both content and metadata.   However by default "Share" only turns on versioning of content, and it also does "lazy" versioning.

bisana
Champ on-the-rise
Champ on-the-rise
Hi Mrogers
Thanks for the info
What will happen If  Custom Type Properties or Custom Aspect properties applied on a document keeps on changing, is it possible for a version and rollback based on that versioning.

mrogers
Star Contributor
Star Contributor
Yes if you are versioning properties you can rollback to a previous version.

mike001
Champ in-the-making
Champ in-the-making
Thank you for your responses. My next question is how do I enable the versioning of properties? At the moment I've defined a custom content model with two custom optional aspects. The custom content model has the versioning aspect applied but when I pull back an old version through a CMIS client it doesn't seem to have the property values that I know were applied when it was the latest version.

Many thanks,

Mike.

mrogers
Star Contributor
Star Contributor
When you add the versionable aspect you set a property on the versionable aspect.  

Can't quite remember the name but its something obvious like cm:auto version properties.

scouil
Star Contributor
Star Contributor
You can look at the definition of the aspect here:
<tomcat home>/webapps/alfresco/WEB-INF/classes/alfresco/model/contentModel.xml  and search for "cm:versionable"

So I guess the property would be cm:autoVersionOnUpdateProps
On my Alfresco version, the default value is already true though…

kroser
Champ in-the-making
Champ in-the-making
If anyone can finish this thread and specify the final solution for turning on versioning of properties in the latest community version, I'd really appreciate it.  I would hope there is something to change in a .properties file to do this.