<?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 Problem binding Association change behaviors in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-binding-association-change-behaviors/m-p/76389#M24155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create behaviors to react to association changes, but it is not working and I cannot figure out why.&amp;nbsp; I'm sure it must be something simple like a typo.&amp;nbsp; Can anyone help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the init method is being called because I put a break in the debugger and it hit and executed just fine.&amp;nbsp; The problem is that the onCreateAssociation and&amp;nbsp;onDeleteAssociation methods are never called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the relevant portions of the content model and java code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;namespaces&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;  &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;namespace &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;uri=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;"http://www.rwjf.org/model/content/investments/1.0" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;prefix=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;"invest"&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;  &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;namespace &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;uri=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;"http://www.rwjf.org/model/content/common/1.0" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;prefix=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;"rwjf"&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;namespaces&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;PRE style="font-size: 9.0pt;"&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;aspect &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;name=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;"invest:investmentsDocument"&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;  &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;Investments Document&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;  &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;associations&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;association &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;name=&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;"invest:entity"&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;      &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;Entity&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;      &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;source&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;        &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;mandatory&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;false&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;mandatory&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;        &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;many&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;true&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;many&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;      &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;source&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;      &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;target&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;        &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;invest:entityAspect&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;        &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;mandatory&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;false&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;mandatory&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;        &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;many&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;true&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;many&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;      &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;target&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;association&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;  &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;associations&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;aspect&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public class &lt;/SPAN&gt;AssociationChanges &lt;SPAN style="color: #000080; font-weight: bold;"&gt;implements &lt;/SPAN&gt;NodeServicePolicies.OnDeleteAssociationPolicy,&lt;BR /&gt;        NodeServicePolicies.OnCreateAssociationPolicy{ &lt;SPAN style="color: #808080;"&gt;// Dependencies&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;NodeLocatorService &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;nodeLocatorService&lt;/SPAN&gt;;&lt;BR /&gt;    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;ServiceRegistry &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;serviceRegistry&lt;/SPAN&gt;;&lt;BR /&gt;    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;PolicyComponent &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;policyComponent&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN style="color: #808080;"&gt;// Behaviours&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;Behaviour &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;onCreateAssociation&lt;/SPAN&gt;;&lt;BR /&gt;    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;Behaviour &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;onDeleteAssociation&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;private &lt;/SPAN&gt;Logger &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;logger &lt;/SPAN&gt;= Logger.&lt;SPAN&gt;getLogger&lt;/SPAN&gt;(AssociationChanges.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;class&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;init() {&lt;BR /&gt;        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;logger&lt;/SPAN&gt;.isDebugEnabled()) &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;logger&lt;/SPAN&gt;.debug(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Initializing association change behaviors"&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN style="color: #808080;"&gt;// Create behaviours&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;onCreateAssociation &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;JavaBehaviour(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"onCreateAssociation"&lt;/SPAN&gt;, NotificationFrequency.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;EVERY_EVENT&lt;/SPAN&gt;);&lt;BR /&gt;        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;onDeleteAssociation &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;JavaBehaviour(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"onDeleteAssociation"&lt;/SPAN&gt;, NotificationFrequency.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;EVERY_EVENT&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;policyComponent&lt;/SPAN&gt;.bindAssociationBehaviour(&lt;BR /&gt;                QName.&lt;SPAN&gt;createQName&lt;/SPAN&gt;(NamespaceService.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;ALFRESCO_URI&lt;/SPAN&gt;,&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"onCreateAssociation"&lt;/SPAN&gt;),&lt;BR /&gt;                QName.&lt;SPAN&gt;createQName&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"http://www.rwjf.org/model/content/investments/1.0"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"investmentsDocument"&lt;/SPAN&gt;),&lt;BR /&gt;                QName.&lt;SPAN&gt;createQName&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"http://www.rwjf.org/model/content/investments/1.0"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"entity"&lt;/SPAN&gt;),&lt;BR /&gt;                &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;onCreateAssociation&lt;/SPAN&gt;);&lt;BR /&gt;        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;policyComponent&lt;/SPAN&gt;.bindAssociationBehaviour(&lt;BR /&gt;                QName.&lt;SPAN&gt;createQName&lt;/SPAN&gt;(NamespaceService.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;ALFRESCO_URI&lt;/SPAN&gt;,&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"onDeleteAssociation"&lt;/SPAN&gt;),&lt;BR /&gt;                QName.&lt;SPAN&gt;createQName&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"http://www.rwjf.org/model/content/investments/1.0"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"investmentsDocument"&lt;/SPAN&gt;),&lt;BR /&gt;                QName.&lt;SPAN&gt;createQName&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"http://www.rwjf.org/model/content/investments/1.0"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"entity"&lt;/SPAN&gt;),&lt;BR /&gt;                &lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;onDeleteAssociation&lt;/SPAN&gt;);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onCreateAssociation(AssociationRef assocRef) {&lt;BR /&gt;        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;logger&lt;/SPAN&gt;.isDebugEnabled()) &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;logger&lt;/SPAN&gt;.debug(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Inside onCreateAssociation"&lt;/SPAN&gt;);&lt;BR /&gt;        handleAssociationChange(assocRef);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;public void &lt;/SPAN&gt;onDeleteAssociation(AssociationRef assocRef) {&lt;BR /&gt;        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;logger&lt;/SPAN&gt;.isDebugEnabled()) &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;logger&lt;/SPAN&gt;.debug(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Inside onDeleteAssociation"&lt;/SPAN&gt;);&lt;BR /&gt;        handleAssociationChange(assocRef);&lt;BR /&gt;    }&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I had also tried the three argument constructor of&amp;nbsp;bindAssociationBehaviour and had the same results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 15:42:29 GMT</pubDate>
    <dc:creator>cseickel</dc:creator>
    <dc:date>2019-03-01T15:42:29Z</dc:date>
    <item>
      <title>Problem binding Association change behaviors</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-binding-association-change-behaviors/m-p/76389#M24155</link>
      <description>I am trying to create behaviors to react to association changes, but it is not working and I cannot figure out why.&amp;nbsp; I'm sure it must be something simple like a typo.&amp;nbsp; Can anyone help me out?I know the init method is being called because I put a break in the debugger and it hit and executed just fin</description>
      <pubDate>Fri, 01 Mar 2019 15:42:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-binding-association-change-behaviors/m-p/76389#M24155</guid>
      <dc:creator>cseickel</dc:creator>
      <dc:date>2019-03-01T15:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem binding Association change behaviors</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-binding-association-change-behaviors/m-p/76390#M24156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing I always recommend: Make use of constants instead of creating QName instances by hand.&lt;/P&gt;&lt;P&gt;E.g. the interfaces for OnCreateAssociationPolicy and its deleted counterpart all define a QNAME constant with the name to use during registration. With regards to your own model, it is always recommended to create a custom interface / class to define your own QName constants. I have seen a lot of issues caused just by the smallest typo or misuse of a namespace URI in such manual QName instantiation code, which always was very hard to spot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case I myself can't spot any typos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to keep in mind: The OnCreateAssociationPolicy is only triggered IF the source node already has the relevant aspect applied at the time the association is added. If the node does not have the aspect applied yet, the policy will be triggered only for the type and other aspects at the time, before the "missing" aspect is added. That means there is a "notification gap" in the Alfresco behaviour code, which can cause you to miss on events - and maybe your tests fall into that notification gap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 17:28:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-binding-association-change-behaviors/m-p/76390#M24156</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-03-01T17:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem binding Association change behaviors</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-binding-association-change-behaviors/m-p/76391#M24157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that info about the notification gap.&amp;nbsp; It does not apply to this situation but I know that would have caused me problems in the future had I not known about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had switched to using NodeServicePolicies.OnCreateAssociationPolicy.QNAME and&amp;nbsp;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;&amp;nbsp;&lt;/SPAN&gt;NodeServicePolicies.OnDeleteAssociationPolicy.QNAME just in case it made a difference, but still no results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps there are errors somewhere that I don't know about, but I can't find the logs.&amp;nbsp; This is a little off topic, but do you know where the alfresco.log and catalina.out files are when using SDK 4.0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 19:53:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-binding-association-change-behaviors/m-p/76391#M24157</guid>
      <dc:creator>cseickel</dc:creator>
      <dc:date>2019-03-01T19:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem binding Association change behaviors</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-binding-association-change-behaviors/m-p/76392#M24158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I rarely use the SDK (only one customer and one community project with SDK 2.x), and even then never to run an embedded / RAD process, I actually don't know that off the top of my hat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 08:40:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-binding-association-change-behaviors/m-p/76392#M24158</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-03-04T08:40:19Z</dc:date>
    </item>
  </channel>
</rss>

