<?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: Using 'Comment' functionality requires history... why? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113812#M80148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) No - that would mean fetching more entities in one query which we don't do for performance reasons&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) that would be good. Could you create a Jira so we and you can follow-up?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2013 08:48:47 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2013-12-05T08:48:47Z</dc:date>
    <item>
      <title>Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113805#M80141</link>
      <description>Hi,We are thinking of using the comment option of Activiti. Comments are however only stored in history tables. So we actually need the history configuration to be at least 'activity'. We do not want this for several reasons- Performance/Storage of process history information (that we do not need)-</description>
      <pubDate>Tue, 05 Jun 2012 08:20:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113805#M80141</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-06-05T08:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113806#M80142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the idea was that a comment is never 'active'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The moment you post it, is is already historic, and it is never going to change anymore from that point on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does the history level needs to be set to 'activity'? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I believe you are right in the reasoning that history level shouldnt have influence on the comment functionality, regardless how it is implemented&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 13:57:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113806#M80142</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-06-06T13:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113807#M80143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The history level needs to be at least 'activity', or better, it cannot be 'none'. The reason for this is that in the CommentManager.java a check for the history being enabled is done. E.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; public void insert(PersistentObject persistentObject) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; checkHistoryEnabled();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; super.insert(persistentObject);&lt;BR /&gt;&amp;nbsp; }&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;This CommentManager extends AbstractHistoricManager&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;public class AbstractHistoricManager extends AbstractManager {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; protected int historyLevel = Context.getProcessEngineConfiguration().getHistoryLevel();&lt;BR /&gt;&amp;nbsp; protected boolean isHistoryEnabled = historyLevel &amp;gt; ProcessEngineConfigurationImpl.HISTORYLEVEL_NONE;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; protected void checkHistoryEnabled() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!isHistoryEnabled) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiException("history is not enabled");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; public boolean isHistoryEnabled() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return isHistoryEnabled;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;and the table is called ACT_HI_CMT, so it is tightly integrated with history. You need all history tables created (there is a relation with &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-920" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-920&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally I think, even though comments are not to be changed, the implementation should be different.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 21:06:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113807#M80143</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-06-06T21:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113808#M80144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yup, indeed. Imho, it shouldn't do that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll have a chat with Tom on that (I think he wrote that part) and see if we can change it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 08:19:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113808#M80144</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-06-07T08:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113809#M80145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I use the "historicTaskInstance" to get comment ? I can not find getComment() method in historicTaskInstance. What can I do? How can I do? Please.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 04:39:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113809#M80145</guid>
      <dc:creator>edragonfly</dc:creator>
      <dc:date>2013-12-03T04:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113810#M80146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the TaskService to get comments of a specific task id. So you can use the task id of the HistoricTaskInstance as input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 15:13:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113810#M80146</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-12-04T15:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113811#M80147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 07:32:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113811#M80147</guid>
      <dc:creator>edragonfly</dc:creator>
      <dc:date>2013-12-05T07:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113812#M80148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) No - that would mean fetching more entities in one query which we don't do for performance reasons&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) that would be good. Could you create a Jira so we and you can follow-up?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 08:48:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113812#M80148</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-12-05T08:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113813#M80149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes,you are right . I understand .&amp;nbsp; It is for performance reasons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, jbarrez and Thank you,trademak.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 00:32:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113813#M80149</guid>
      <dc:creator>edragonfly</dc:creator>
      <dc:date>2013-12-06T00:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using 'Comment' functionality requires history... why?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113814#M80150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you , Tijs Rademakers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have got it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;——&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;Comment&amp;gt; taskComments = taskService.getTaskComments(historicTaskInstance.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for(Comment comment : taskComments) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CommentEntity commentEntity = (CommentEntity)comment;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(commentEntity.getMessage());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;——&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But , Could you provide following function in next wishful version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp;&amp;nbsp; Comment&amp;nbsp; HistoricTaskInstance.getComment();&amp;nbsp;&amp;nbsp;&amp;nbsp; //TaskService&amp;nbsp; provide&amp;nbsp; getTaskComments(String taskId) method now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp;&amp;nbsp; String&amp;nbsp; Comment.getMessage();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // org.activiti.engine.task.Event&amp;nbsp; provide&amp;nbsp; getMessage()&amp;nbsp; method now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so , Activiti is going to be more convenient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or ,&amp;nbsp; My idea was wrong？&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 00:44:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-comment-functionality-requires-history-why/m-p/113814#M80150</guid>
      <dc:creator>edragonfly</dc:creator>
      <dc:date>2013-12-06T00:44:15Z</dc:date>
    </item>
  </channel>
</rss>

