<?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: Searchable associations in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294091#M247221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a bit of a slippery slope. There are ways to work around the problem, as you've observed, but if you get carried away you will have a big mess on your hands. Alfresco simply isn't a relational database so the more you try to treat it like one the more pain you will encounter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that said, one option to consider is writing a behavior to sync the data between the nodes. That is a much better approach than using a rule because it happens at a lower level. So, for example, you have a behavior that binds to the onUpdateNode policy of your specific data list type. When it is triggered, it traverses the associations to update the data it needs to update on the related documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 14:56:36 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2014-05-02T14:56:36Z</dc:date>
    <item>
      <title>Searchable associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294090#M247220</link>
      <description>I have implemented my own custom model, and I have a question about associations.I have searched and found that associations are not searchable by Lucene, for performance issues. Yet, consider the following scenario:&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;A list of contacts in a data list &amp;lt;li&amp;gt;A document that need</description>
      <pubDate>Fri, 02 May 2014 13:35:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294090#M247220</guid>
      <dc:creator>grk</dc:creator>
      <dc:date>2014-05-02T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Searchable associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294091#M247221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a bit of a slippery slope. There are ways to work around the problem, as you've observed, but if you get carried away you will have a big mess on your hands. Alfresco simply isn't a relational database so the more you try to treat it like one the more pain you will encounter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With that said, one option to consider is writing a behavior to sync the data between the nodes. That is a much better approach than using a rule because it happens at a lower level. So, for example, you have a behavior that binds to the onUpdateNode policy of your specific data list type. When it is triggered, it traverses the associations to update the data it needs to update on the related documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 14:56:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294091#M247221</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-05-02T14:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Searchable associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294092#M247222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your help, Jeff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, from what I am given to understand I have to implement a &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html&lt;/A&gt;&lt;SPAN&gt;" &amp;gt;custom behavior&amp;lt;/a&amp;gt; in every datalist type that I might use? Can I develop a behavior where the name of the associated person is loaded on display of the document, rather than implementing an update one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But putting that aside, is this the correct way to implement a dynamic list? I mean, the very first reason I wanted to do this, was a request for a constraint of values, but not defined in the .xml; instead, we wanted a dynamic list that we can maintain. Is this the best way? Because as I mentioned, I also want to implement content modelling for related documents that are part of an office "case", etc. So, are associations the way to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 19:01:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294092#M247222</guid>
      <dc:creator>grk</dc:creator>
      <dc:date>2014-05-02T19:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Searchable associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294093#M247223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tony Parzgnat did an excellent lightning talk at last year's Alfresco Summit on using data list values for constraints. The recording of that lightning talk session is here: &lt;/SPAN&gt;&lt;A href="http://summit.alfresco.com/boston/sessions/lightning-talks-2" rel="nofollow noopener noreferrer"&gt;http://summit.alfresco.com/boston/sessions/lightning-talks-2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe he intends to open source that code but he has not done that yet to my knowledge.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't need associations to do constraints implemented in data lists. I don't really see a reason to maintain that relationship between the selected value and the thing that defines that value. If you want to change the value when the data list value changes, you can do a query to find all documents with the old value, then change it to the new value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 22:10:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294093#M247223</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-05-07T22:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Searchable associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294094#M247224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at &lt;/SPAN&gt;&lt;A href="https://github.com/keensoft/alfresco-datalist-constraints" rel="nofollow noopener noreferrer"&gt;https://github.com/keensoft/alfresco-datalist-constraints&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find a sample implementation for constraints based on datalists.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 07:16:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searchable-associations/m-p/294094#M247224</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2014-05-08T07:16:26Z</dc:date>
    </item>
  </channel>
</rss>

