I have this script that copies a file in Company Home and throws and exception after the copy throws and exception.
var node = utils.getNodeFromString("workspace://SpacesStore/c9a77e78-2034-46ec-ae36-48049ee088d7");
var nn = node.copy(companyhome);
I set the level of transaction to required, but the file is copied anyways.
I have three questions:
- Why is there not a rollback?
- What am I doing wrong?
- How can I tell Alfresco not to copy the file if there is an exception?