<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Automated deployment of a rule in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/automated-deployment-of-a-rule/m-p/227089#M180219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Alfresco Community Edition 3.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; document.setOwner("admin");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;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 &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking forward to any hints&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cyman&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2009 09:11:24 GMT</pubDate>
    <dc:creator>cyman</dc:creator>
    <dc:date>2009-10-30T09:11:24Z</dc:date>
    <item>
      <title>Automated deployment of a rule</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automated-deployment-of-a-rule/m-p/227089#M180219</link>
      <description>HiUsing Alfresco Community Edition 3.2I 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:&amp;nbsp;&amp;nbsp; document.setOwner("admin");And I have defined the rule for any inbound document on the root-s</description>
      <pubDate>Fri, 30 Oct 2009 09:11:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automated-deployment-of-a-rule/m-p/227089#M180219</guid>
      <dc:creator>cyman</dc:creator>
      <dc:date>2009-10-30T09:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Automated deployment of a rule</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/automated-deployment-of-a-rule/m-p/227090#M180220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A follow-up from my side:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that the rule is treated as a child of the space…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should help me with my problem (I hope).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 07:30:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/automated-deployment-of-a-rule/m-p/227090#M180220</guid>
      <dc:creator>cyman</dc:creator>
      <dc:date>2009-11-03T07:30:54Z</dc:date>
    </item>
  </channel>
</rss>

