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.
try{ var action = actions.create("transform"); action.parameters["destination-folder"] = transformSpaceNode; action.parameters["assoc-type"] = "{http://www.alfresco.org/model/content/1.0}contains"; action.parameters["assoc-name"] = pdfFileName; action.parameters["mime-type"] = "application/pdf"; // Execute action.execute(document); }catch(e) { logger.log(e); logger.log(" Exception Occured while transformation for the Doc " + document.name); // copy original doc to transform space var copiedNode = document.copy(transformSpaceNode); logger.log("After Copy :: " + copiedNode.nodeRef); }
transactoknService.getNonPropogationUserTransaction(). Then transaction.begin();