<?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 [REGRESSION 6x - 7x]Behavior Policies - Action when moving a document in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/regression-6x-7x-behavior-policies-action-when-moving-a-document/m-p/133179#M35880</link>
    <description>&lt;P&gt;EDIT : After testing, this seems to be a &lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;regression&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt; between 6.x and 7.x (6.2 =&amp;gt; 7.3)&lt;/P&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;I have an issue on a Policy I try to create to detect and perform actions when a document is moved.&lt;/P&gt;&lt;P&gt;I have already implemented it for folders :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;        eventManager.bindClassBehaviour(
            NodeServicePolicies.OnMoveNodePolicy.QNAME,
            ContentModel.TYPE_FOLDER,
            new JavaBehaviour(
                this, "onMoveFolder",
                NotificationFrequency.TRANSACTION_COMMIT
            )
        );&lt;/PRE&gt;And that is perfectly working, detecting well the changes. But for document I am unable to execute the exact same operation :&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;        eventManager.bindClassBehaviour(
            NodeServicePolicies.OnMoveNodePolicy.QNAME,
            ContentModel.TYPE_CONTENT,
            new JavaBehaviour(
                this, "onMoveDocument",
                NotificationFrequency.TRANSACTION_COMMIT
            )
        );&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;It never calls&amp;nbsp;onMoveDocument.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I also tried to replace "ContentModel.TYPE_CONTENT" by "ContentModel.TYPE_BASE" or by "this" and to try the 3 available "NotificationFrequency" values but nothing works (except it triggers on folders when I change the values to be less restrictive).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does someone have an idea ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you !&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 24 Jan 2023 12:03:18 GMT</pubDate>
    <dc:creator>jleman</dc:creator>
    <dc:date>2023-01-24T12:03:18Z</dc:date>
    <item>
      <title>[REGRESSION 6x - 7x]Behavior Policies - Action when moving a document</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/regression-6x-7x-behavior-policies-action-when-moving-a-document/m-p/133179#M35880</link>
      <description>&lt;P&gt;EDIT : After testing, this seems to be a &lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;regression&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt; between 6.x and 7.x (6.2 =&amp;gt; 7.3)&lt;/P&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;I have an issue on a Policy I try to create to detect and perform actions when a document is moved.&lt;/P&gt;&lt;P&gt;I have already implemented it for folders :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;        eventManager.bindClassBehaviour(
            NodeServicePolicies.OnMoveNodePolicy.QNAME,
            ContentModel.TYPE_FOLDER,
            new JavaBehaviour(
                this, "onMoveFolder",
                NotificationFrequency.TRANSACTION_COMMIT
            )
        );&lt;/PRE&gt;And that is perfectly working, detecting well the changes. But for document I am unable to execute the exact same operation :&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;        eventManager.bindClassBehaviour(
            NodeServicePolicies.OnMoveNodePolicy.QNAME,
            ContentModel.TYPE_CONTENT,
            new JavaBehaviour(
                this, "onMoveDocument",
                NotificationFrequency.TRANSACTION_COMMIT
            )
        );&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;It never calls&amp;nbsp;onMoveDocument.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I also tried to replace "ContentModel.TYPE_CONTENT" by "ContentModel.TYPE_BASE" or by "this" and to try the 3 available "NotificationFrequency" values but nothing works (except it triggers on folders when I change the values to be less restrictive).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does someone have an idea ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you !&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Jan 2023 12:03:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/regression-6x-7x-behavior-policies-action-when-moving-a-document/m-p/133179#M35880</guid>
      <dc:creator>jleman</dc:creator>
      <dc:date>2023-01-24T12:03:18Z</dc:date>
    </item>
  </channel>
</rss>

