<?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 Is any limit for folder rule script execution in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/is-any-limit-for-folder-rule-script-execution/m-p/74644#M23860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;We have repository with tree folder structure, where&amp;nbsp;there is only one parent folder&amp;nbsp;per a huge set of subfolders number of which&amp;nbsp;is constantly growing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;So, there are thousands of folders with one parent folder, and there&amp;nbsp;are&amp;nbsp;few&amp;nbsp;such folder conglomerats.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;On creation of each folder background folder rule script is executed. The rule is on root folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;function main()&lt;BR /&gt;{&lt;BR /&gt; if (document.isContainer) &lt;BR /&gt; {&lt;BR /&gt; document.setInheritsPermissions(false);&lt;/P&gt;&lt;P&gt;document.setPermission("Consumer", "GROUP_someGroup1");&lt;BR /&gt; document.setPermission("Coordinator", "GROUP_someGroup2");&lt;BR /&gt; document.setPermission("Coordinator", "GROUP_someGroup3");&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;main();&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;The purpose is to&amp;nbsp;turn off inheritence and to add default groups to each subfolder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;The rule description is&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;H2 style="font-weight: normal; font-size: 16.003px; padding-bottom: 0.5em;"&gt;setpermissions&lt;/H2&gt;&lt;DIV&gt;&lt;EM style="color: #606060; font-weight: normal;"&gt;Description:&lt;/EM&gt;&lt;/DIV&gt;&lt;HR style="color: #eeeeee; background-color: #eeeeee; border: 0px; margin: 5px 0px 8px;" /&gt;&lt;DIV class="" style="padding-left: 2em; padding-top: 0.25em; padding-bottom: 0.25em;"&gt;Active&lt;/DIV&gt;&lt;DIV class="" style="padding-left: 2em; padding-top: 0.25em; padding-bottom: 0.25em;"&gt;Run in background&lt;/DIV&gt;&lt;DIV class="" style="padding-left: 2em; padding-top: 0.25em; padding-bottom: 0.25em;"&gt;Rule applied to subfolder&lt;/DIV&gt;&lt;DIV class="" style="padding-left: 2em; padding-top: 0.25em; padding-bottom: 0.25em;"&gt;&lt;SPAN style="background-color: #ffffff; color: #008000;"&gt;When:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;Items are created or enter this folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;If all criteria are met:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Is of type (or sub type) '&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff;"&gt;&lt;SPAN class=""&gt;Folder&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; color: #008000;"&gt;Perform Action:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Execute '&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;setpermisions.js&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;' script&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;It is done&amp;nbsp;via rule, because it is not possible to turn off inheritence via CMIS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Till now we have never problems with&amp;nbsp;such folder rule execution, so there we no even need to make any error logging for them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;But we have one occasion, when one subfolder was created and default groups were not added.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;So the question is, does folder rule mechanism have some limitation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Alfresco Community (Build: 201612)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2019 09:18:44 GMT</pubDate>
    <dc:creator>skushnerenko</dc:creator>
    <dc:date>2019-01-17T09:18:44Z</dc:date>
    <item>
      <title>Is any limit for folder rule script execution</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-any-limit-for-folder-rule-script-execution/m-p/74644#M23860</link>
      <description>We have repository with tree folder structure, where&amp;nbsp;there is only one parent folder&amp;nbsp;per a huge set of subfolders number of which&amp;nbsp;is constantly growing.So, there are thousands of folders with one parent folder, and there&amp;nbsp;are&amp;nbsp;few&amp;nbsp;such folder conglomerats.On creation of each folder background folder r</description>
      <pubDate>Thu, 17 Jan 2019 09:18:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-any-limit-for-folder-rule-script-execution/m-p/74644#M23860</guid>
      <dc:creator>skushnerenko</dc:creator>
      <dc:date>2019-01-17T09:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is any limit for folder rule script execution</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-any-limit-for-folder-rule-script-execution/m-p/74645#M23861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Folder rules do not have any builtin limitations regarding depth, but there is an aspect rule:ignoreInheritedRules which can be applied to a folder and if applied, rules will not be inherited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 09:35:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-any-limit-for-folder-rule-script-execution/m-p/74645#M23861</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-01-18T09:35:08Z</dc:date>
    </item>
  </channel>
</rss>

