cancel
Showing results for 
Search instead for 
Did you mean: 

Creating folder containing rules

ivan_vazquez
Champ in-the-making
Champ in-the-making
Hello. It is posible to create with JavaScript a folder with rules? I need to create folders containing rules with JavaScript and I don't know how. Thanks.
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
It's not possible in the out-of-the-box code of Alfresco because the RuleService is not exposed by the Rhino engine.
Anyway you could expose all the services and methods that you need writing your own scopable object for the Javascript API:
http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Adding_Custom_Script_APIs
Hope this helps.

kriton
Champ in-the-making
Champ in-the-making
Another way to go around this, but it may not be possible in your case, is to create a dummy folder somwhere in the repisotory and set rules for it using share, and then instead of creating a new folder in your script, copy the dummy folder.
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.