<?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 ProcessInstanceComments for list of tasks in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/processinstancecomments-for-list-of-tasks/m-p/203632#M156762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a list of about 300 tasks that I display in a table. For each task a user can add comments (which are added to the process on the backend). When I retrieve the list of tasks to display, before rendering this list I iterate it and retrieve comments by using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;Comment&amp;gt; comments = taskService.getProcessInstanceComments(task.getProcessInstanceId(), "comment");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I display the number of comments for each row, so users know if there is a comment for a specific process. The problem is that the ACT_HI_COMMENT table now has over 350,000 rows and it keeps growing, so the comment retrieval for a list of 300 tasks takes close to a minute. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a better way to accomplish this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 20:44:13 GMT</pubDate>
    <dc:creator>ivan_activiti</dc:creator>
    <dc:date>2015-10-29T20:44:13Z</dc:date>
    <item>
      <title>ProcessInstanceComments for list of tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstancecomments-for-list-of-tasks/m-p/203632#M156762</link>
      <description>I have a list of about 300 tasks that I display in a table. For each task a user can add comments (which are added to the process on the backend). When I retrieve the list of tasks to display, before rendering this list I iterate it and retrieve comments by using:List&amp;lt;Comment&amp;gt; comments = taskS</description>
      <pubDate>Thu, 29 Oct 2015 20:44:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstancecomments-for-list-of-tasks/m-p/203632#M156762</guid>
      <dc:creator>ivan_activiti</dc:creator>
      <dc:date>2015-10-29T20:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstanceComments for list of tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstancecomments-for-list-of-tasks/m-p/203633#M156763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ended up taking a CustomSqlExecution direction. I left joined the ACT_HI_COMMENT table in my custom mapper select statement and it seems to work much faster now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 17:55:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstancecomments-for-list-of-tasks/m-p/203633#M156763</guid>
      <dc:creator>ivan_activiti</dc:creator>
      <dc:date>2015-10-30T17:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstanceComments for list of tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstancecomments-for-list-of-tasks/m-p/203634#M156764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ivan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes you can optimize the query. Another thing is that you have to archive history (History will keep growing….)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 08:59:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstancecomments-for-list-of-tasks/m-p/203634#M156764</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-11-03T08:59:19Z</dc:date>
    </item>
  </channel>
</rss>

