10-13-2016 09:04 AM
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.
10-13-2016 11:23 AM
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.
10-14-2016 11:06 AM
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?
10-14-2016 11:10 AM
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
10-14-2016 02:30 PM
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
10-17-2016 07:57 AM
so there's no way to keep only n versions of a document besides the non-working amp?
10-17-2016 08:02 AM
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.
10-17-2016 08:12 AM
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
10-20-2016 12:14 PM
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
11-21-2016 10:53 AM
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.
11-24-2016 10:14 AM
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.
11-28-2016 10:42 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.