<?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 Rule/script unwanted looping in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rule-script-unwanted-looping/m-p/309334#M262464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Im using a rule to run a script when a document is moved or created in a directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script it runs is copying a folder template to said directory. This is then re-triggering the rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can this be avoided? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2013 00:13:49 GMT</pubDate>
    <dc:creator>tomoconnell</dc:creator>
    <dc:date>2013-11-28T00:13:49Z</dc:date>
    <item>
      <title>Rule/script unwanted looping</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-script-unwanted-looping/m-p/309334#M262464</link>
      <description>Im using a rule to run a script when a document is moved or created in a directory.The script it runs is copying a folder template to said directory. This is then re-triggering the rule.How can this be avoided?</description>
      <pubDate>Thu, 28 Nov 2013 00:13:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-script-unwanted-looping/m-p/309334#M262464</guid>
      <dc:creator>tomoconnell</dc:creator>
      <dc:date>2013-11-28T00:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rule/script unwanted looping</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-script-unwanted-looping/m-p/309335#M262465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I suppose you have configured the in bound rule.To avoid unwanted looping ,your script should not be executed for copied content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copied content has specific aspect ,for which you can add condition in your script so that your script will not execute for copied content.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 03:35:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-script-unwanted-looping/m-p/309335#M262465</guid>
      <dc:creator>yogeshpj</dc:creator>
      <dc:date>2013-11-28T03:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rule/script unwanted looping</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rule-script-unwanted-looping/m-p/309336#M262466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Solved using&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (!document.hasAspect("cm:copiedfrom")) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 22:53:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rule-script-unwanted-looping/m-p/309336#M262466</guid>
      <dc:creator>tomoconnell</dc:creator>
      <dc:date>2013-11-28T22:53:07Z</dc:date>
    </item>
  </channel>
</rss>

