cancel
Showing results for 
Search instead for 
Did you mean: 

Keep only n versions of document

framtk
Champ on-the-rise
Champ on-the-rise

Hi,

is it possible for alfresco to keep only the n most recent versions of a document and delete the older ones? I don't seem to see the option to do so on the alfresco web GUI.

1 ACCEPTED ANSWER

When you try to install the module with "apply-amps", it says:

09130001 An error was encountered during deployment of the AMP into the WAR: 09130000 The module (Alfresco MaxVersion Policy) cannot be installed on a war version greater than 5.0.999. This war is version: 5.1.0.

You can modify following property at "alfresco-maxversion-policy/src/main/amp/module.properties" from project source code.

module.repo.version.max=5.1.999

Then you have to rebuild the AMP, and re-deploy the artifact.

BTW, I have deployed in 5.1.g and it works as expected.

Hyland Developer Evangelist

View answer in original post

29 REPLIES 29

no this is the first amp that i'm trying to install but i looked on the documentation how to do it manually. In the amps folder i have 3 default amps (aos-module, googledocs-repo and share-services) is this normal?

Yes, it's normal. That's because you installed AOS (SharePoint) and Google Docs. The other one is transitory for using with Share.

Installing an AMP is easy.

1 - Copy the AMP file to /opt/alfresco/amps

2 - Stop alfresco service

3 - Run /opt/alfresco/bin/apply_amps.sh

4 - Start alfresco service

And it's done

Hyland Developer Evangelist

yes, i only did that 4 times between 3 reinstalls of alfresco. i think i got how amps should be installed but it doesn't seem to work for me

so there's no way to keep only n versions of a document besides the non-working amp?

Just inform that this AMP (               6.91 KB max-version-policy-0.0.9-SNAPSHOT.amp             ) is working for me on a default Alfresco 5.1.g by using `apply-amps.sh` tool.

Hyland Developer Evangelist

so my problem is that my apply_amp is broken. I can't seem to be able to install this or any other amp both with install_amp and with manual installation

jottley
Confirmed Champ
Confirmed Champ

I've updated the project to include support for Alfresco 5.1. The latest release can be found athttps://github.com/jottley/alfresco-maxversion-policy/releases/tag/0.0.9

cristinamr
World-Class Innovator
World-Class Innovator

Excuse me, Jared. The problem related with your development is that Alfresco does not allow you to create more than 10 versions of one document? Like for example: If I upload 1 doc and I upload more than 10 major versions alfresco does not allow me to do that? Or what is exactly the problem?

I am asking you because I am a little bit confusing here: In 5.1.1 I've could upload till 13 different major version of one document. For sure it's something that I am not understanding properly.

Thanks in advance for the clarification!!

Cristina.

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc

Alfresco by default allows you to have as many versions, both major and minor, of a document as you want.  You may not want that. You may have policies where you may only want to keep the last 10 minor versions of a document or only the list 5 major versions. This add-on will enforce that rule.  You choose the number of versions you want to keep, globally, for documents. So, for example, if you wanted to only keep the last 8 versions of documents in the repository the add-on will enforce that. Once you have uploaded the 9th version of a document the add-on will remove the oldest version(s) of that document until there are only 8 versions of the document.

cristinamr
World-Class Innovator
World-Class Innovator

Great! Thank you very much for your reply, Jared 🙂

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc