cancel
Showing results for 
Search instead for 
Did you mean: 

Automated deployment of a rule

cyman
Champ in-the-making
Champ in-the-making
Hi

Using Alfresco Community Edition 3.2

I need to define a rule which automatically changes the owner of any new document to e.g. the 'admin' user. I have created a javascript file containing the following:
   document.setOwner("admin");
And I have defined the rule for any inbound document on the root-space. So far so good. (if there is an easier way, I'm open for it 😉 )

Now I would like to include this rule (and the related JS file) in our delivery-package. After installing alfresco and our extensions, no additional work on the GUI shall be needed. What is the way to do this? From what I understood I will be able to automatically deploy content (like the JS file) using an ACP. But how do I get the rule to be set up automatically on the root space?

Looking forward to any hints
cyman
1 REPLY 1

cyman
Champ in-the-making
Champ in-the-making
A follow-up from my side:

I finally found out that one can also export rules in an ACP. You need to export the space where the rule is defined, including the children.
It seems that the rule is treated as a child of the space…

This should help me with my problem (I hope).