<?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 Query over Relations in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/query-over-relations/m-p/250413#M203543</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'm looking for a solution for the following problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've designed a simple content model, containing several custom document types and, for some own workflow implementation, a 'workflowcontrol' type. The intitial idea was, the relate a 'workflowcontrol' to each document, since I won't have to change the document meta itself then - for example, if status changes or the responsible editor person is replaced. In addition 'user' and 'team' types (for simplicity all derived from cm:content) have been implemented and are assigned (as relations) to each 'workflowcontrol' object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Editor] &amp;lt;1 —- n&amp;gt; [workflowcontrol] &amp;lt;1 —- 1&amp;gt; [document]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my problem: I'm using the opencmis api to build a client application, and, for example, I need to count all documents related to an editor object. Since I cannot (or at least think, I can't) join over these relations in queries, I have implemented a very, very slow (but finally working) mechanism, that first gets the 'editor' object and then get it's source(or target) 'workflowcontrol's, counting over the iterator. Of course it becomes even slower, if I want to get the 'documents' with a certain status (i.e. 'new'), which is stored in the 'workflowcontrol'. In this case, for each 'workflowcontrol' retrieved I would have to get relation target documents as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I'm not sure, if we use alfresco as the final repository (that why we use cmis &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; ), we decided not to use aspects and so this (propably best) way of implementing this kind of logic is not an option. Are there any ideas, how to implement this logic with little more performance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One possibility would be using weaker links (maybe a string field containing object id's instead of each relation), but maybe there are better ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sebastian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 10:53:25 GMT</pubDate>
    <dc:creator>schaefse</dc:creator>
    <dc:date>2012-01-12T10:53:25Z</dc:date>
    <item>
      <title>Query over Relations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-over-relations/m-p/250413#M203543</link>
      <description>Hi,I'm looking for a solution for the following problem:I've designed a simple content model, containing several custom document types and, for some own workflow implementation, a 'workflowcontrol' type. The intitial idea was, the relate a 'workflowcontrol' to each document, since I won't have to ch</description>
      <pubDate>Thu, 12 Jan 2012 10:53:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-over-relations/m-p/250413#M203543</guid>
      <dc:creator>schaefse</dc:creator>
      <dc:date>2012-01-12T10:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query over Relations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-over-relations/m-p/250414#M203544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco Query Language &lt;/SPAN&gt;&lt;STRONG&gt;does not support querys&lt;/STRONG&gt;&lt;SPAN&gt; on &lt;/SPAN&gt;&lt;STRONG&gt;cmis:relations&lt;/STRONG&gt;&lt;SPAN&gt; objects (for now).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use &lt;/SPAN&gt;&lt;STRONG&gt;getObjectRelationships &lt;/STRONG&gt;&lt;SPAN&gt;function on&lt;/SPAN&gt;&lt;EM&gt; CMIS RelationShip Service&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 20:49:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-over-relations/m-p/250414#M203544</guid>
      <dc:creator>pedronaranjo</dc:creator>
      <dc:date>2012-01-21T20:49:59Z</dc:date>
    </item>
  </channel>
</rss>

