cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a generic rule

nparry
Champ in-the-making
Champ in-the-making
I want to create rules that move content which contains employees' personal information to spaces that are named after them.  For example, I could create a rule for every employee that says "When an inbound item into this space contains the word '*john_smith*' in the title, move it to the 'john_smith' space."  Obviously, I would have a lot of rules very fast.  Is there a way that I can just make a rule that says, "When any item comes into this space, move it to the appropriate space based on the title of the content"?

Thanks,
Nick
1 REPLY 1

kevinr
Star Contributor
Star Contributor
You can use a javascript action to easily solve this problem. The current user object is available as a node that you can use, so is the current folder etc. and you can create folders, move items etc. no problem also with the javascript API:
http://wiki.alfresco.com/wiki/JavaScript_API

Once you have written your script, you create a rule that executes that script.

Thanks,

Kevin