As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var empId = document.properties["dc:eId"];
var docName = document.properties["name"];
…… var empId = document.properties["{http://www.myintrospeqt.com/model/content/1.0}eId"]; var empName = document.properties["{http://www.myintrospeqt.com/model/content/1.0}eName"]; ……..
var backupFolder = space.childByNamePath("Backup"); if (backupFolder == null && space.hasPermission("CreateChildren")) { // create the folder for the first time backupFolder = space.createFolder("Backup"); } var logFile = backupFolder.childByNamePath("backuplog.txt"); if (logFile == null) { logFile = backupFolder.createFile("backuplog.txt"); } if (logFile != null) { logFile.content += "starting logging " ; } document.reset(); var empId = document.properties["{http://www.Democo.com/model/content/1.0}eId"]; var empName = document.properties["{http://www.Democo.com/model/content/1.0}eName"]; logFile.content += "empId: " + empId + " empName: " + empName;
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=debug log4j.logger.org.alfresco.repo.jscript=debug
document Node Type: {http://www.myintrospeqt.com/model/content/1.0}invoice, Node Aspects: [{http://www.alfresco.org/model/content/1.0}auditable, {http://www.alfresco.org/model/system/1.0}referenceable, {http://www.alfresco.org/model/content/1.0}titled, {http://www.alfresco.org/model/content/1.0}author, {http://www.alfresco.org/model/content/1.0}generalclassifiable]
var prop = document.properties["custom:applicationNo"]; var existsSpace = space.childByNamePath(prop); var dest; if(existsSpace == null) { dest = space.createFolder(prop); document.move(dest); } else { document.move(existsSpace); }