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.
if(space.isContainer) { updateCorr(space); } function updateCorr(node) { for each (n in node.children) { if(n.isDocument) { //DoSomeStuff } if(n.isContainer) updateCorr(n); } }
Failed to run Actions due to error: Failed to execute script 'workspace://SpacesStore/0ba91e52-4a33-45bc-bbda-43cf83d7f0b3': Failed to execute script 'workspace://SpacesStore/0ba91e52-4a33-45bc-bbda-43cf83d7f0b3': needed ';' before an instruction(AlfrescoScript#1)
var items = space.children; for (var i=0; i<items.length; i++) { if (items[i].isDocument) { // do some work, such as rename the file items[i].name = items[i].name + ".xyz"; items[i].save(); } }
Failed to run Actions due to error: Failed to execute script 'workspace://SpacesStore/0cfd1f9d-a388-4d94-8e19-60203a8b4675': Failed to execute script 'workspace://SpacesStore/0cfd1f9d-a388-4d94-8e19-60203a8b4675': Wrapped org.alfresco.service.cmr.repository.CyclicChildRelationshipException: Cyclic parent-child relationship detected: current node: 4472 current path: {http://www.alfresco.org/model/system/1.0}henry.jones/{http://www.alfresco.org/model/content/1.0}Backup next assoc: 4490 (AlfrescoScript#11)