<?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 When node A is deleted, automatically delete node B too in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/when-node-a-is-deleted-automatically-delete-node-b-too/m-p/232640#M185770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My project has two spaces: &lt;/SPAN&gt;&lt;STRONG&gt;originals&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;published&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When &lt;/SPAN&gt;&lt;EM&gt;file3.doc&lt;/EM&gt;&lt;SPAN&gt; is deleted in &lt;/SPAN&gt;&lt;STRONG&gt;originals&lt;/STRONG&gt;&lt;SPAN&gt;, then I want Alfresco to automatically delete &lt;/SPAN&gt;&lt;EM&gt;file3.pdf&lt;/EM&gt;&lt;SPAN&gt; in &lt;/SPAN&gt;&lt;STRONG&gt;published&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is my code that transforms &lt;/SPAN&gt;&lt;EM&gt;file3.doc&lt;/EM&gt;&lt;SPAN&gt; into &lt;/SPAN&gt;&lt;EM&gt;file3.pdf&lt;/EM&gt;&lt;SPAN&gt; in the first place, so I create a child association between the two. But when the father is removed, the child remains &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the child association the way to go?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or can content rules be triggered by a deletion?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nicolas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Mar 2010 06:00:50 GMT</pubDate>
    <dc:creator>nicolasraoul</dc:creator>
    <dc:date>2010-03-26T06:00:50Z</dc:date>
    <item>
      <title>When node A is deleted, automatically delete node B too</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-node-a-is-deleted-automatically-delete-node-b-too/m-p/232640#M185770</link>
      <description>Hello all,My project has two spaces: originals and published.When file3.doc is deleted in originals, then I want Alfresco to automatically delete file3.pdf in published.It is my code that transforms file3.doc into file3.pdf in the first place, so I create a child association between the two. But whe</description>
      <pubDate>Fri, 26 Mar 2010 06:00:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-node-a-is-deleted-automatically-delete-node-b-too/m-p/232640#M185770</guid>
      <dc:creator>nicolasraoul</dc:creator>
      <dc:date>2010-03-26T06:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: When node A is deleted, automatically delete node B too</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-node-a-is-deleted-automatically-delete-node-b-too/m-p/232641#M185771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nicolas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have a look at this wiki page &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Data_Dictionary_Guide" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Data_Dictionary_Guide&lt;/A&gt;&lt;SPAN&gt;, you'll get some good background information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to distinguish between primary and non-primary child-associations. The former cascade the delete from the parent node to its children whilst the latter do not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The former are what you get from e.g. nodeService.createNode() and the latter are what you get from e.g. nodeService.addChild()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Mar 2010 15:40:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-node-a-is-deleted-automatically-delete-node-b-too/m-p/232641#M185771</guid>
      <dc:creator>neilm</dc:creator>
      <dc:date>2010-03-30T15:40:08Z</dc:date>
    </item>
  </channel>
</rss>

