<?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 Which policy to implement for this behavior ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/which-policy-to-implement-for-this-behavior/m-p/193353#M146483</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;I coded a policy very similar to the SDK example "customAspect". The problem is : can we apply the policy "onUpdateNode" recursively ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My case :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inside userhome folder I have the folder of an alfresco registered user, call it "manager".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Inside "manager" folder I have two folders : "Mail" and "Wait".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For "Mail" and "Wait" folders, they have incoming documents from somewhere. Everytime these nodes are updated, the policy "onUpdateNode" is called which keep up to date the "counter" property of "countable" aspect applied on each folder. That's good !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The same policy is applied to "manager" folder to keep up to date the total number of document (sum of "Mail" and "Wait" counter).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I directly move a document into "Mail" for example, only the policy of "Mail" folder is called and NOT the one of "manager" where as the "Mail" has been updated internaly (one document arrived) and even renamed as "Mail(1)".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need that from one move of document into "Mail" , the "Mail" and "Manager" folder have their "counter" property updated (=&amp;gt; calling two times the policy for one move only).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2009 12:40:49 GMT</pubDate>
    <dc:creator>zomurn</dc:creator>
    <dc:date>2009-04-20T12:40:49Z</dc:date>
    <item>
      <title>Which policy to implement for this behavior ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/which-policy-to-implement-for-this-behavior/m-p/193353#M146483</link>
      <description>Hi,I coded a policy very similar to the SDK example "customAspect". The problem is : can we apply the policy "onUpdateNode" recursively ?My case :inside userhome folder I have the folder of an alfresco registered user, call it "manager".Inside "manager" folder I have two folders : "Mail" and "Wait".</description>
      <pubDate>Mon, 20 Apr 2009 12:40:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/which-policy-to-implement-for-this-behavior/m-p/193353#M146483</guid>
      <dc:creator>zomurn</dc:creator>
      <dc:date>2009-04-20T12:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Which policy to implement for this behavior ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/which-policy-to-implement-for-this-behavior/m-p/193354#M146484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'am afraid that I need to code it manually…but on the other hand, it prevents from executing as many transactions as necessary.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 13:48:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/which-policy-to-implement-for-this-behavior/m-p/193354#M146484</guid>
      <dc:creator>zomurn</dc:creator>
      <dc:date>2009-04-20T13:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Which policy to implement for this behavior ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/which-policy-to-implement-for-this-behavior/m-p/193355#M146485</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;I'am wondering which policy to implement for the following event : fileFolderService.move(srcRef,destRef,newname);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The scenario is folder A contains MyDoc.pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And MyDoc.pdf if moved to B which has the aspect cm:countable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And I have a behavior linked to this aspect but it never executes ! Why ? I tried to implement onUpdateNodePolicy but after the move, the method overrided named onUpdateNode is never called ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is the policy to implement ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 14:29:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/which-policy-to-implement-for-this-behavior/m-p/193355#M146485</guid>
      <dc:creator>zomurn</dc:creator>
      <dc:date>2009-04-22T14:29:34Z</dc:date>
    </item>
  </channel>
</rss>

