I may be reading that code wrong, but isn't that implying that the rules already exist on the object, and the code is just forcing them to execute?
(This is a related topic I'm interested in, as I'd like to be sure that if I create rules on a folder, that they would be applied to all new objects added to the folder, regardless of which "client" they come from - i.e. webdav, Share, CMIS, etc.)
I am really looking to see how, if I have "Folder A" with a defined set of rules, when I create "Folder B" (via CMIS), how can I copy the set of rules so they are now also on "Folder B" and will auto-run for objects placed into that new folder?
Thanks for the reply!
-AJ