<?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 Attachments and Comments in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/attachments-and-comments/m-p/133312#M93625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found this API excellent by his interfaces and the code itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now, I have a question that I can't find answer,&amp;nbsp; across the code or the JavaDoc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I add an attachment to the proccess, Activiti automaticly adds a comment to that attachment. So, when I ask for comments I get ALL undesirable comments. &lt;/SPAN&gt;&lt;STRONG&gt;How can I filter these undesirable comments?&lt;/STRONG&gt;&lt;SPAN&gt; By now, I'm filtering it by: &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if (comment.getFullMessage() == null)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;. I want to filter it by database query to avoid this kind of checks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, &lt;/SPAN&gt;&lt;STRONG&gt;what is the best way to relate the attachments with comments?&lt;/STRONG&gt;&lt;SPAN&gt; to obtain userID and time&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry about my english&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards Juan Pablo From Argentina&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2013 14:56:06 GMT</pubDate>
    <dc:creator>jotapdiez</dc:creator>
    <dc:date>2013-03-14T14:56:06Z</dc:date>
    <item>
      <title>Attachments and Comments</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attachments-and-comments/m-p/133312#M93625</link>
      <description>Hi all!!I found this API excellent by his interfaces and the code itself.But now, I have a question that I can't find answer,&amp;nbsp; across the code or the JavaDoc.When I add an attachment to the proccess, Activiti automaticly adds a comment to that attachment. So, when I ask for comments I get ALL undesi</description>
      <pubDate>Thu, 14 Mar 2013 14:56:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attachments-and-comments/m-p/133312#M93625</guid>
      <dc:creator>jotapdiez</dc:creator>
      <dc:date>2013-03-14T14:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Attachments and Comments</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/attachments-and-comments/m-p/133313#M93626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to filter it by database query to avoid this kind of checks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That isn't offered out of the box unfortunately. You'd need to write your own queries + commands.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, you can use the NativeQuery, altough you'd need to create your own subclass since for comments no nativeQuery class exists yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, what is the best way to relate the attachments with comments? to obtain userID and time&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm afraid that's also pretty hard to do, as the text is just generated at runtime and the userid and time is passed …. besides some basic string filtering I can't think of much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 09:27:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/attachments-and-comments/m-p/133313#M93626</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-15T09:27:23Z</dc:date>
    </item>
  </channel>
</rss>

