<?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: Delete node rendition using JS API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279560#M232690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is happening is that you have deleted a node and then tried to do something with it after it has been marked for deletion.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That pending delete stuff breaks the infinite loops that would otherwise occur with those sort of cyclic rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to delete a rendition on deletion of the parent doc.&amp;nbsp; That's the default out of the box behaviour.&amp;nbsp;&amp;nbsp; You need a little more anaysis to work out what should happen and when.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2014 14:38:00 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2014-12-11T14:38:00Z</dc:date>
    <item>
      <title>Delete node rendition using JS API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279557#M232687</link>
      <description>Hi all,I'm experiencing a strange behavior using the combination of Rules and JS API and it would be really great if someone could point me in the right direction.We're uploading PDF documents into a given folder structure in Alfresco and using a Rule to create JPEG renditions from these PDF documen</description>
      <pubDate>Mon, 08 Dec 2014 16:48:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279557#M232687</guid>
      <dc:creator>rvarkonyi</dc:creator>
      <dc:date>2014-12-08T16:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete node rendition using JS API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279558#M232688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you try to delete multiple node in one transaction it applies pendingDelete aspect on all of them so that when that transaction will be committed all of them will be deleted. Now in this case may be you could try with document.save() after remove operation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 20:03:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279558#M232688</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-12-10T20:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete node rendition using JS API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279559#M232689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case I'm only testing with a single PDF document so it's not the case of deleting multiple nodes in one transaction. We will of course want to delete multiple nodes in the future but not at the moment, we're just trying to get it to work when deleting a single node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could folder permissions play any role in this situation you think?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 14:09:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279559#M232689</guid>
      <dc:creator>rvarkonyi</dc:creator>
      <dc:date>2014-12-11T14:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delete node rendition using JS API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279560#M232690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is happening is that you have deleted a node and then tried to do something with it after it has been marked for deletion.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That pending delete stuff breaks the infinite loops that would otherwise occur with those sort of cyclic rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to delete a rendition on deletion of the parent doc.&amp;nbsp; That's the default out of the box behaviour.&amp;nbsp;&amp;nbsp; You need a little more anaysis to work out what should happen and when.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 14:38:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279560#M232690</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-12-11T14:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete node rendition using JS API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279561#M232691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also read that the default behaviour is that renditions are removed when the parent node is removed. In our case, though, that doesn't seem to happen. Do you have any ideas why that might be? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 17:29:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279561#M232691</guid>
      <dc:creator>rvarkonyi</dc:creator>
      <dc:date>2014-12-11T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delete node rendition using JS API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279562#M232692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your replies. Eventually I've taken a different route and use JS to first check if a transformed version of the given node already exists in the specified folder and remove if it does. Then, in the same script, I transform the node and copy it to the specified folder. There might be better solutions than my current one but this definitely works for us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 11:30:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/delete-node-rendition-using-js-api/m-p/279562#M232692</guid>
      <dc:creator>rvarkonyi</dc:creator>
      <dc:date>2014-12-15T11:30:03Z</dc:date>
    </item>
  </channel>
</rss>

