<?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: Catch the parent node of a deleted node in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65911#M22263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the check "Run the rule in background" to define the rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2018 07:53:27 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2018-08-29T07:53:27Z</dc:date>
    <item>
      <title>Catch the parent node of a deleted node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65910#M22262</link>
      <description>Hello community,&amp;nbsp;i have created a rule in a folder that when users add&amp;nbsp;contents to that folder the rule calls a custom script&amp;nbsp;that prepends to all children&amp;nbsp;nodes in that parent folder a specific char, at this point i&amp;nbsp;catch the parent node based on the "document" var node&amp;nbsp;that fired the rule, this wo</description>
      <pubDate>Tue, 28 Aug 2018 16:21:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65910#M22262</guid>
      <dc:creator>willyguevara</dc:creator>
      <dc:date>2018-08-28T16:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Catch the parent node of a deleted node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65911#M22263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the check "Run the rule in background" to define the rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 07:53:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65911#M22263</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-08-29T07:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Catch the parent node of a deleted node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65912#M22264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response &lt;B&gt;Angel Borroy&lt;/B&gt;‌,&amp;nbsp;i have set&amp;nbsp;the flag you told me,&amp;nbsp;but it has not worked for me, i'm wondering if the RootScoped Var `document` &amp;nbsp;is&amp;nbsp;Defined when the rule calls my custom script on node deletion actions, because my script get the parent node based on that variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:01:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65912#M22264</guid>
      <dc:creator>willyguevara</dc:creator>
      <dc:date>2018-08-29T14:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Catch the parent node of a deleted node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65913#M22265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that "document" should be considered as a removed node in the JavaScript API when using delete as condition on a rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually I develop a behaviour for this, but Java is required:&amp;nbsp;&lt;A class="link-titled" href="https://angelborroy.wordpress.com/2015/05/22/alfresco-implementing-delete-behavior/" title="https://angelborroy.wordpress.com/2015/05/22/alfresco-implementing-delete-behavior/" rel="nofollow noopener noreferrer"&gt;Alfresco – Implementing delete behavior | Programming and So&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:18:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65913#M22265</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-08-29T16:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Catch the parent node of a deleted node</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65914#M22266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nice! i will try using Behaviors, thanks for the reference link!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to share with you that i have try using the RootScoped var "Space"&amp;nbsp;this worked for me, this get me the Folder parent of the uploaded Node that triggers the rule, it defines with the node of the folder where the rule is configured it works fine but i have to redefine the same rule in each folder i want the same functionality, if you link the rule to an existing one, this variable always gets defined with the Folder where the rule war originally created.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;think i will continue with the script using this "Space" variable, and if theres no success i will be moving to create a behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help &lt;B&gt;Angel Borroy&lt;/B&gt;‌!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:42:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/catch-the-parent-node-of-a-deleted-node/m-p/65914#M22266</guid>
      <dc:creator>willyguevara</dc:creator>
      <dc:date>2018-08-29T16:42:15Z</dc:date>
    </item>
  </channel>
</rss>

