Created
April 5, 2015 16:02
-
-
Save cmlewis/3ddb180afe9f4e9f9157 to your computer and use it in GitHub Desktop.
Alfresco - Automate creation of many major and minor versions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var numMinorVersions = 15; | |
var numMajorVersions = 2; | |
for (var i = 0; i < numMinorVersions; i++) { | |
document.createVersion("automated minor version", false); | |
} | |
for (var i = 0; i < numMajorVersions; i++) { | |
document.createVersion("automated major version", true); | |
for (var j = 0; j< numMinorVersions; j++) { | |
document.createVersion("automated minor version", false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment