<?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: Problem to delete node in behaviour?! in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290684#M243814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi kaynezhang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your answer. Based on your response I added additionally disabling of all rules on the node which I want to delete using Java API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ruleService.disableRules(nodeRef);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But still sometimes I am experiencing the same error. I say sometimes because it worked in one moment but after I restarted server I started to experience the same error again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any other suggestion?&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, 24 Apr 2014 12:46:00 GMT</pubDate>
    <dc:creator>nenad982</dc:creator>
    <dc:date>2014-04-24T12:46:00Z</dc:date>
    <item>
      <title>Problem to delete node in behaviour?!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290682#M243812</link>
      <description>Hi all,I have a problem to delete node in behavior. For example I implemented NodeServicePolicies.OnMoveNodePolicy‍and in the NodeServicePolicies.OnMoveNodePolicy#onMoveNode‍method I am creating new node, coping title, description and name of node that has been moved to new node properties (before t</description>
      <pubDate>Wed, 23 Apr 2014 17:41:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290682#M243812</guid>
      <dc:creator>nenad982</dc:creator>
      <dc:date>2014-04-23T17:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to delete node in behaviour?!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290683#M243813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your log it seems a rule is triggered and in your rule an action is executed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The action try to load the node that has possiblely been deleted by your OnMoveNodePolicy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess you may have defined some rule that is triggered at the same time with you OnMoveNodePolicy,please check it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 02:08:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290683#M243813</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-24T02:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to delete node in behaviour?!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290684#M243814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi kaynezhang,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your answer. Based on your response I added additionally disabling of all rules on the node which I want to delete using Java API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ruleService.disableRules(nodeRef);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But still sometimes I am experiencing the same error. I say sometimes because it worked in one moment but after I restarted server I started to experience the same error again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any other suggestion?&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, 24 Apr 2014 12:46:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290684#M243814</guid>
      <dc:creator>nenad982</dc:creator>
      <dc:date>2014-04-24T12:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to delete node in behaviour?!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290685#M243815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a real nasty thing to do in a move node policy.&amp;nbsp;&amp;nbsp; What if there is more than one move node policy and you have deleted the source node.&amp;nbsp;&amp;nbsp;&amp;nbsp; If you need to do this then at least do your delete in a post commit handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But what are you really wanting to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 15:52:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290685#M243815</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-04-24T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to delete node in behaviour?!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290686#M243816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mrogers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we have some folders and rules on them. Rules will specialize type of the content that is created or entered this folder. So sometimes our customer make mistakes and documents are added to wrong folders and for these document type will be changed based on rule on folder, but this will be unwanted type. So they want functionality that will fix that document type. So when they move again document with invalid type to right folder (with rule also) they what to created document with valid type. So in behavior I create new document and copy properties and content from document with bad type and at the end I have to delete document with bad type (rule on folder will change type of new document to right type). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So do you have some suggestion how to delete that node in behavior? You mentioned post commit handler, is there any example how to use it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 16:11:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290686#M243816</guid>
      <dc:creator>nenad982</dc:creator>
      <dc:date>2014-04-24T16:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to delete node in behaviour?!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290687#M243817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When a node is changed to an unwanted bype,Why not use the change type function to&amp;nbsp; Re-sets the type of the node to corrrect type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't need to create new document and copy properties and content from document with bad type,just change to document with bad type to the type you want and move it to&amp;nbsp; specified folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 02:21:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290687#M243817</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-04-25T02:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to delete node in behaviour?!</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290688#M243818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This can be solution, but not in my case because I have onChageType behavior also involved so I decided to move all bad nodes in specific folder after valid nodes are created and to use chron job that will delete bad documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks all for you help…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 16:25:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-to-delete-node-in-behaviour/m-p/290688#M243818</guid>
      <dc:creator>nenad982</dc:creator>
      <dc:date>2014-04-25T16:25:29Z</dc:date>
    </item>
  </channel>
</rss>

