<?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 Re: Creating folder rules via API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108755#M30529</link>
    <description>&lt;P&gt;Two options come to my mind to solve this problem:&lt;BR /&gt;1.Develop a customized rule service web script if you want to use remote rule servcie api.&lt;BR /&gt;2.You can create a scheduled job in your application ,in the job call alfresco rendition rest api (&lt;A href="https://api-explorer.alfresco.com/api-explorer/#/renditions" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#/renditions&lt;/A&gt;) to create pdf rendition. I recommend this one.&lt;/P&gt;</description>
    <pubDate>Sat, 14 Nov 2020 01:59:14 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2020-11-14T01:59:14Z</dc:date>
    <item>
      <title>Creating folder rules via API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108754#M30528</link>
      <description>&lt;P&gt;Hi folks, I'm working on a solution using Alfresco headlessly as an ECM.&amp;nbsp; So i have the core Alfresco services but no share service.&lt;/P&gt;&lt;P&gt;My solution uses PDF renditions to view documents in a custom browser external to Alfresco, so depends on every document having a PDF rendition available.&amp;nbsp; As I understand it (happy for any better steers) the logical way to ensure a PDF rendition is available for each document is a webscript running as a folder rule on my documentLibrary.&lt;/P&gt;&lt;P&gt;The webscript itself seems fairly simple (one line,&amp;nbsp;&amp;nbsp;renditionService.render(document, "{&lt;A href="http://www.alfresco.org/model/content/1.0}pdf&amp;quot;)).&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}pdf")).&amp;nbsp;&lt;/A&gt; But without share I can't work out how to apply this to my folder.&amp;nbsp; From research I understand that the current REST API cannot query or upload rules, and a deprecated REST API should be use, but I've struggled to find details.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers appreciated on how to work with rules via REST request, or comments otherwise welcome on if this really is the best way to ensure PDF renditions are available&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:52:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108754#M30528</guid>
      <dc:creator>ocox</dc:creator>
      <dc:date>2020-11-13T16:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating folder rules via API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108755#M30529</link>
      <description>&lt;P&gt;Two options come to my mind to solve this problem:&lt;BR /&gt;1.Develop a customized rule service web script if you want to use remote rule servcie api.&lt;BR /&gt;2.You can create a scheduled job in your application ,in the job call alfresco rendition rest api (&lt;A href="https://api-explorer.alfresco.com/api-explorer/#/renditions" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#/renditions&lt;/A&gt;) to create pdf rendition. I recommend this one.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 01:59:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108755#M30529</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-11-14T01:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating folder rules via API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108756#M30530</link>
      <description>&lt;P&gt;There are REST APIs available out of box which will help you to manage rules.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.0/references/RESTful-RuleRulePost.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.0/references/RESTful-RuleRulePost.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Additionally following tool created by Jeff pott could also be useful to you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/jpotts/alfresco-rule-management" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/jpotts/alfresco-rule-management&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I could see that you need two step solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create rule which execute the renditon scripts on each content of folder.&lt;/P&gt;&lt;P&gt;2) Create another rule which will ensure that whenever new folder is created it will have new rule applied to it. This could be rule on your root folder of repository.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 11:15:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108756#M30530</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2020-11-14T11:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating folder rules via API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108757#M30531</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/82968"&gt;@ocox&lt;/A&gt;&amp;nbsp;Did you ever come up with a solution for this? I'm looking to do the same thing. Sady, many of the links in the replies to your post are broken and therefore don't help me.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 14:24:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108757#M30531</guid>
      <dc:creator>Scott_McCauley</dc:creator>
      <dc:date>2021-03-04T14:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating folder rules via API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108758#M30532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/84716"&gt;@Scott_McCauley&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used wayback machine to access the &lt;A href="https://web.archive.org/web/20161013090900/https://docs.alfresco.com/5.0/references/RESTful-RuleRulePost.html" target="_self" rel="nofollow noopener noreferrer"&gt;5.0 docs&lt;/A&gt; -&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 12:01:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-folder-rules-via-api/m-p/108758#M30532</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-03-05T12:01:56Z</dc:date>
    </item>
  </channel>
</rss>

