Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Alfresco - Automate creation of many major and minor versions
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
You can’t perform that action at this time.