<?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 Get process comments in Java Service Task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-process-comments-in-java-service-task/m-p/11374#M5019</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Does anyone know how to retrieve comments added to a workflow process using REST in a Java-based Service Task ?&lt;/P&gt;&lt;P&gt;My situation is as follows:&lt;/P&gt;&lt;P&gt;I have a custom APS user interface that allows the user to add comments to the process using the POST /process-instances/&amp;lt;process-id&amp;gt;/comments REST API&lt;/P&gt;&lt;P&gt;During the workflow I can retrieve these comments and re-display them using the GET&amp;nbsp;/process-instances/&amp;lt;process-id&amp;gt;/comments REST API&lt;/P&gt;&lt;P&gt;At the end of my workflow I want to write all the comments to a PDF document. I've created a Java service task that uses ApachePOI to generate a PDF document and had assumed I could use the TaskService method getProcessInstanceComments(processId) to return the comments.&lt;/P&gt;&lt;P&gt;It turns out that these comments are different to the comments created via the REST API.&lt;/P&gt;&lt;P&gt;Coments created via REST get saved to the COMMENTS table.&lt;/P&gt;&lt;P&gt;getProcessInstanceComments()&amp;nbsp;returns comments from the ACT_HI_COMMENTS table so is obviously never going to find my comments.&lt;/P&gt;&lt;P&gt;I've no idea why there are 2 different implementations, but has anyone come across a Java method that will retrieve the user comments from the COMMENTS table ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 21:12:17 GMT</pubDate>
    <dc:creator>pedwards99</dc:creator>
    <dc:date>2020-12-10T21:12:17Z</dc:date>
    <item>
      <title>Get process comments in Java Service Task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-process-comments-in-java-service-task/m-p/11374#M5019</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Does anyone know how to retrieve comments added to a workflow process using REST in a Java-based Service Task ?&lt;/P&gt;&lt;P&gt;My situation is as follows:&lt;/P&gt;&lt;P&gt;I have a custom APS user interface that allows the user to add comments to the process using the POST /process-instances/&amp;lt;process-id&amp;gt;/comments REST API&lt;/P&gt;&lt;P&gt;During the workflow I can retrieve these comments and re-display them using the GET&amp;nbsp;/process-instances/&amp;lt;process-id&amp;gt;/comments REST API&lt;/P&gt;&lt;P&gt;At the end of my workflow I want to write all the comments to a PDF document. I've created a Java service task that uses ApachePOI to generate a PDF document and had assumed I could use the TaskService method getProcessInstanceComments(processId) to return the comments.&lt;/P&gt;&lt;P&gt;It turns out that these comments are different to the comments created via the REST API.&lt;/P&gt;&lt;P&gt;Coments created via REST get saved to the COMMENTS table.&lt;/P&gt;&lt;P&gt;getProcessInstanceComments()&amp;nbsp;returns comments from the ACT_HI_COMMENTS table so is obviously never going to find my comments.&lt;/P&gt;&lt;P&gt;I've no idea why there are 2 different implementations, but has anyone come across a Java method that will retrieve the user comments from the COMMENTS table ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 21:12:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-process-comments-in-java-service-task/m-p/11374#M5019</guid>
      <dc:creator>pedwards99</dc:creator>
      <dc:date>2020-12-10T21:12:17Z</dc:date>
    </item>
  </channel>
</rss>

