<?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: Extending Domain Entities in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/extending-domain-entities/m-p/211438#M164568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi @pmsevestre, thank you for yor answer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I'm doing. I have another tables where I store Instance ids or Task ids. The problem that i'm facing is how to join this data with Activiti entities, in a single query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean, I want to do a native query, that brings more information than a HistoricProcessInstance can represent. In such case, i can't use use a Native Query for example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a real example, look at this table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/qk3Dg6u.png" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/qk3Dg6u.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is records represents active process instances. The column "Descrição" is dynamically generated and update during process execution, and is stored in another table (in my application domain tables). The column "Anexo" represents the existence of attachments in this process, and this can be represented with a simple count query as column. To do that, I need to fetch the process instances, and latter, fetch all this data per row to represent. If I can do that in a single query exteding the activiti domain model to reuse the entity mapping, will be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe, I'm in the wrong path, and the better way is to acess the activiti tables directly with Raw JDBC, or even map activiti tables with my JPA Entities, not allowing changes to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Nov 2015 22:28:17 GMT</pubDate>
    <dc:creator>edufrazao</dc:creator>
    <dc:date>2015-11-21T22:28:17Z</dc:date>
    <item>
      <title>Extending Domain Entities</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extending-domain-entities/m-p/211436#M164566</link>
      <description>Hi folks. Its possible to extend domain Entities, to bring more information?I mean, I have some external data connected to my entitites, like Attachments, and other information that is in my Domain Model, but directly connected with ProcessInstances or Tasks. How can I extend this entities to not lo</description>
      <pubDate>Tue, 17 Nov 2015 11:27:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extending-domain-entities/m-p/211436#M164566</guid>
      <dc:creator>edufrazao</dc:creator>
      <dc:date>2015-11-17T11:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extending Domain Entities</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extending-domain-entities/m-p/211437#M164567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you´re using the REST interface there is an extension point that allows you to customize/enrich the entities that are returned to the caller. I´d avoid messing with Ativiti´s tables in order to avoid too much coupling with the its domain model. I think a better approach is to keep in your entities a reference to the relevant Activiti entity (eg, a processInstanceId). If you choose to keep your tables on the same DB, you can even make those references use FKs, so you´ll have strong integrity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 17:06:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extending-domain-entities/m-p/211437#M164567</guid>
      <dc:creator>pmsevestre</dc:creator>
      <dc:date>2015-11-20T17:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extending Domain Entities</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extending-domain-entities/m-p/211438#M164568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi @pmsevestre, thank you for yor answer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I'm doing. I have another tables where I store Instance ids or Task ids. The problem that i'm facing is how to join this data with Activiti entities, in a single query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean, I want to do a native query, that brings more information than a HistoricProcessInstance can represent. In such case, i can't use use a Native Query for example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a real example, look at this table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://i.imgur.com/qk3Dg6u.png" rel="nofollow noopener noreferrer"&gt;http://i.imgur.com/qk3Dg6u.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is records represents active process instances. The column "Descrição" is dynamically generated and update during process execution, and is stored in another table (in my application domain tables). The column "Anexo" represents the existence of attachments in this process, and this can be represented with a simple count query as column. To do that, I need to fetch the process instances, and latter, fetch all this data per row to represent. If I can do that in a single query exteding the activiti domain model to reuse the entity mapping, will be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe, I'm in the wrong path, and the better way is to acess the activiti tables directly with Raw JDBC, or even map activiti tables with my JPA Entities, not allowing changes to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2015 22:28:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extending-domain-entities/m-p/211438#M164568</guid>
      <dc:creator>edufrazao</dc:creator>
      <dc:date>2015-11-21T22:28:17Z</dc:date>
    </item>
  </channel>
</rss>

