Hello,
I try to define a rule to a folder that delete all activeWorkflows attached to a document when the document it's self is deleted or deplaced. I use this script in the rule:
for(var i=0;i<document.activeWorkflows.length ;i++){
document.activeWorkflows[i].cancel();
}When i deplaced the document all attached woekflows are cancelled but when i try to delete this document an error occure:
Could not delete 'file_name'.
help plz.