cancel
Showing results for 
Search instead for 
Did you mean: 

Rule change Category

hienque
Champ in-the-making
Champ in-the-making
Hi all,
How can I creat a rule to change or delete an assigned Category?
Example: All file in Folder X is assigned Category A,B,C. I want change to Category B,C,D. Or delete Category A of all file in Folder X.
Thank you!
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
You have to configure a rule with an execute-script action that executes a JavaScript for changing the category.
You can take a look at the JavaScript API page here, see the Classification API:

http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Classification_API

Hope this helps.

hienque
Champ in-the-making
Champ in-the-making
Thanks OpenPj!
Could you send me an example script?