cancel
Showing results for 
Search instead for 
Did you mean: 

Link/Copy Folder RULES?

aweber1nj
Champ in-the-making
Champ in-the-making
Any way to do something analogous to "Link to an existing rule set" when creating/updating folders with CMIS?

I'd like to define a few folder rules, and then copy those rules when I create cmis:folder objects via Apache Chemistry.  (I could identify the folders from which I'd like to copy the specific rules without too much hassle.)

Any pointers are highly appreciated!

(If this can only be done via a different webservice, I'd love to hear any pointers for that.)

Thanks again!
-AJ
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
hey refer this link

http://wiki.alfresco.com/wiki/Apply_Rules
this code is for applying  the rule in newley created space.
But I guess there is one more api in the actionservice i.e. applyRule.
you can use that  😎

aweber1nj
Champ in-the-making
Champ in-the-making
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

mitpatoliya
Star Collaborator
Star Collaborator
Well Then in that case I think you have to see the logic of space template.
We can achieve this from webclient via space template.
But if we want to do it from the CMIS then you have to follow the similar thing.
Create one space attache the rule to that and when ever you want to create new space create the copy of the existing space and rename that.
That is the way I only see.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.