Custom versioning
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2015 09:42 AM
Hi everyone.
In my organization, we are condisering the deployement of an instance of Alfresco in order to manage all of our documents, mainly Office docx, xlsx and so on.
One deal-breaking drawback is the versioning aspect of alfresco. Here, we want to achieve this kind of versioning:
- draft: v0.1
- second draft: v0.2
- third draft: v0.3
- fourth draft: v0.4
- another draft: v0.5
- final draft: v0.6
- first version to be distributed: v1.0
- minor changes to first version: v1.1
- major changes to first version: v2.0
And so on.
So, what we need in comparison to actual version aspect:
- ability to start versioning at 0.1
- (optional) possibility to input any version manually.
Is there a way to achieve such versioning? Through an addon maybe?
thanks a lot for your help
In my organization, we are condisering the deployement of an instance of Alfresco in order to manage all of our documents, mainly Office docx, xlsx and so on.
One deal-breaking drawback is the versioning aspect of alfresco. Here, we want to achieve this kind of versioning:
- draft: v0.1
- second draft: v0.2
- third draft: v0.3
- fourth draft: v0.4
- another draft: v0.5
- final draft: v0.6
- first version to be distributed: v1.0
- minor changes to first version: v1.1
- major changes to first version: v2.0
And so on.
So, what we need in comparison to actual version aspect:
- ability to start versioning at 0.1
- (optional) possibility to input any version manually.
Is there a way to achieve such versioning? Through an addon maybe?
thanks a lot for your help

Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2015 01:06 PM
Hello,
Alfresco allows for an addon to provide a custom CalculateVersionLabelPolicy to determine version number progression. This should allow you to start at any initial version you'd like. You may potentially also use this to provide custom version properties (will not work with auto-version, but likely any version you programmatically create via the VersionService) that you can use to "jump" to an arbitrary version number.
You can check the SerialVersionLabelPolicy which is the standard policy in Alfresco as a reference.
Currently, this requires custom Java development as I am not aware of any addon that "just" provides a custom versioning policy for simple activation…
Regards
Axel
Alfresco allows for an addon to provide a custom CalculateVersionLabelPolicy to determine version number progression. This should allow you to start at any initial version you'd like. You may potentially also use this to provide custom version properties (will not work with auto-version, but likely any version you programmatically create via the VersionService) that you can use to "jump" to an arbitrary version number.
You can check the SerialVersionLabelPolicy which is the standard policy in Alfresco as a reference.
Currently, this requires custom Java development as I am not aware of any addon that "just" provides a custom versioning policy for simple activation…
Regards
Axel
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2015 04:08 AM
Thanks a lot for your answer. But it conforts my idea that one very painful drawback of Alfresco that addon system is really, really complicated. Alfresco clearly lacks flexibility on this aspect

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2015 07:03 AM
We had a somewhat related requirement and ended up implementing a custom aspect with some actions for version flow. From a technical point of view this wasn't the most elegant solution but our users seem to be happy.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2015 08:49 AM
WOuld you consider sharing the aspect code? If your aspect works on recent versions of Alfresco, maybe I could use it

