Hello,
i would like to know, if is possible to somehow version changes in properties. Thanks
Solved! Go to Solution.
Its not clear what you mentioned, but i believe you want to increment the version on the nodes whenever there is a property/properties update by any means.
To do that, add the following in alfresco-global.properties:
version.store.enableAutoVersionOnUpdateProps=true
This property is set to false by default. By default version increments on content updates.
When you try to update the properties now 'after setting the above property to true' on this newly uploaded node, the version will be auto incremented.
If you want that, existing nodes to auto version on properties update, then you would have to write a script to reset the already set "cm:autoVersionOnUpdateProps" property value to "true".
For newly uploaded nodes, you are good to go anyway.
Here is littile bit infor about Default behavior:
When you upload a file via share or by any means, cm:versionable aspect is applied on it. It by default sets following properties on the uploaded node:
cm:autoVersion => true - Tells that when the cm:versionable aspect is applied and initial snap shot of the node was taken.
cm:initialVersion => true - Tells that when ever a change is made to the "content of a node" that has the versionable aspect applied a new version will be created.
cm:autoVersionOnUpdateProps => false - Tells that version won't be incremented when properties are updated on a node.
This is the default configuration at repo level:
version.store.initialVersion=true
version.store.enableAutoVersioning=true
version.store.enableAutoVersionOnUpdateProps=false
What you mean by version change in properties?
I mean if is change to create new version when i change document properties (via API or on Share). For now, what i see is, that when content is changed, can be make new version and all properties are stored exactly in the moment, when te content is changed. But i woul like to create a new version when i will change properties via API (something like, when i will declare new version in cm:version, on something like that).
Its not clear what you mentioned, but i believe you want to increment the version on the nodes whenever there is a property/properties update by any means.
To do that, add the following in alfresco-global.properties:
version.store.enableAutoVersionOnUpdateProps=true
This property is set to false by default. By default version increments on content updates.
When you try to update the properties now 'after setting the above property to true' on this newly uploaded node, the version will be auto incremented.
If you want that, existing nodes to auto version on properties update, then you would have to write a script to reset the already set "cm:autoVersionOnUpdateProps" property value to "true".
For newly uploaded nodes, you are good to go anyway.
Here is littile bit infor about Default behavior:
When you upload a file via share or by any means, cm:versionable aspect is applied on it. It by default sets following properties on the uploaded node:
cm:autoVersion => true - Tells that when the cm:versionable aspect is applied and initial snap shot of the node was taken.
cm:initialVersion => true - Tells that when ever a change is made to the "content of a node" that has the versionable aspect applied a new version will be created.
cm:autoVersionOnUpdateProps => false - Tells that version won't be incremented when properties are updated on a node.
This is the default configuration at repo level:
version.store.initialVersion=true
version.store.enableAutoVersioning=true
version.store.enableAutoVersionOnUpdateProps=false
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.