cancel
Showing results for 
Search instead for 
Did you mean: 

Executing Rule programmatically

mrsaqib
Champ in-the-making
Champ in-the-making
I have created a rule programmatically in Java and attached with a space, its working fine whenever a new document is inserted into that space. But what if I already have some documents uploaded in the space and I want to run the Rule. I know i can do this via Explorer as defined in the following article.

http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Flibrary-folder...

But I want to achieve the same using Java code.

Does any one please suggest some solution.

:: I am using Alfresco enterprise 4.0.2
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
If you dig in to the OOTB action reapply the rules code you will get the clue.
Probably need to play around RuleService and FileFolderService.