cancel
Showing results for 
Search instead for 
Did you mean: 

Custom versioning

deadbird
Champ in-the-making
Champ in-the-making
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 Smiley Wink
4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator
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

deadbird
Champ in-the-making
Champ in-the-making
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 Smiley Sad

hello_wrold
Champ in-the-making
Champ in-the-making
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.

deadbird
Champ in-the-making
Champ in-the-making
WOuld you consider sharing the aspect code? If your aspect works on recent versions of Alfresco, maybe I could use it Smiley Very Happy