<?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: How does one implement the 'Comment' feature via Activiti Designer? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-does-one-implement-the-comment-feature-via-activiti-designer/m-p/12506#M5492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't aware of this, but I just found a &lt;A _jive_internal="true" href="https://community.alfresco.com/thread/225254-saving-comment-in-process-without-user-task" rel="nofollow noopener noreferrer"&gt;previous question&lt;/A&gt;&amp;nbsp;that highlights how to save a comment to a live ProcessInstance. Here is the rest of the &lt;A href="https://www.activiti.org/javadocs//org/activiti/engine/task/class-use/Comment.html" rel="nofollow noopener noreferrer"&gt;API documentation&lt;/A&gt; referring to the Comment interface. So you could have the user enter a comment that stored in a local variable, then you save the comment using:&lt;/P&gt;&lt;TABLE border="0" cellpadding="3" cellspacing="0" style="color: #353833; border-bottom: 1px solid #eeeeee; border-left: 1px solid #eeeeee; border-right: 1px solid #eeeeee;" summary="Use table, listing methods, and an explanation"&gt;&lt;TBODY&gt;&lt;TR class="" style="background-color: #eeeeef;"&gt;&lt;TD class="" style="font-size: 13px; padding: 8px 0px 3px 10px;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;TaskService.&lt;/SPAN&gt;&lt;CODE style="margin-top: 8px; padding-top: 4px;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;&lt;A href="https://www.activiti.org/javadocs//org/activiti/engine/TaskService.html#addComment-java.lang.String-java.lang.String-java.lang.String-java.lang.String-" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" rel="nofollow noopener noreferrer"&gt;addComment&lt;/A&gt;&lt;/SPAN&gt;(&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;taskId, &lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;processInstanceId, &lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;type, &lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;message)&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;then get them back with the taskService:&lt;/P&gt;&lt;TABLE border="0" cellpadding="3" cellspacing="0" style="color: #353833; border-bottom: 1px solid #eeeeee; border-left: 1px solid #eeeeee; border-right: 1px solid #eeeeee;" summary="Use table, listing methods, and an explanation"&gt;&lt;TBODY&gt;&lt;TR class="" style="background-color: #eeeeef;"&gt;&lt;TD class="" style="font-size: 13px; padding: 8px 0px 3px 10px;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;TaskService.&lt;/SPAN&gt;&lt;CODE style="margin-top: 8px; padding-top: 4px;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;&lt;A href="https://www.activiti.org/javadocs//org/activiti/engine/TaskService.html#getTaskComments-java.lang.String-" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" rel="nofollow noopener noreferrer"&gt;getTaskComments&lt;/A&gt;&lt;/SPAN&gt;(&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;taskId)&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;CODE style="margin-top: 8px; padding-top: 4px;"&gt;&lt;SPAN class="" style="background-color: #eeeeef; font-weight: bold;"&gt;TaskService.&lt;/SPAN&gt;&lt;CODE style="background-color: #eeeeef;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;&lt;A href="https://www.activiti.org/javadocs//org/activiti/engine/TaskService.html#getProcessInstanceComments-java.lang.String-" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" rel="nofollow noopener noreferrer"&gt;getProcessInstanceComments&lt;/A&gt;&lt;/SPAN&gt;(&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;processInstanceId)&lt;/CODE&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that more of what you're looking for? It looks like those comments get saved in the ACT_HI_COMMENT table, also.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you wanted a more custom solution:&lt;/P&gt;&lt;P&gt;Another (more free form) way to do what you're proposing&amp;nbsp;would be to create your own new DB table, where you can use any length of VARCHAR necessary, that would store an association of comments and a TASK_ID_. Then access it similar to my previous suggestion by creating the additional REST layer in Java that would return the comment list. Although, since you already have a working solution, developing all of the additional code base might not be worth it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2017 19:25:37 GMT</pubDate>
    <dc:creator>jearles</dc:creator>
    <dc:date>2017-02-22T19:25:37Z</dc:date>
    <item>
      <title>How does one implement the 'Comment' feature via Activiti Designer?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-does-one-implement-the-comment-feature-via-activiti-designer/m-p/12503#M5489</link>
      <description>Meaning, I currently use Activiti Designer to build user task forms.&amp;nbsp; If I want to add a field for comments, what is the best way to make use of the existing act_hi_comment db table to store the comment?&amp;nbsp; I tried adding a field of type comment but nothing appears on the form.&amp;nbsp; I also did not get any</description>
      <pubDate>Thu, 16 Feb 2017 13:23:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-does-one-implement-the-comment-feature-via-activiti-designer/m-p/12503#M5489</guid>
      <dc:creator>jmzags</dc:creator>
      <dc:date>2017-02-16T13:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: How does one implement the 'Comment' feature via Activiti Designer?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-does-one-implement-the-comment-feature-via-activiti-designer/m-p/12504#M5490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://forums.manning.com/posts/list/30907.page" rel="nofollow noopener noreferrer"&gt;This thread here&lt;/A&gt;&amp;nbsp;from 2013 sheds a little bit of light on the ACT_HI_COMMENT table, how to access it, and what exactly is stored there. It appears that in 2013, this was not fully implemented and the only way to add a comment to a task was through the Java API.&amp;nbsp;However, now it seems that a REST endpoint has been added, &lt;A href="https://www.activiti.org/userguide/#_create_a_new_comment_on_a_task" rel="nofollow noopener noreferrer"&gt;as explained here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not entirely sure what you're referring to with the 'field of type comment' - so you might be onto something there? Maybe give a little bit more detail on that?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It seems like, from the implementation details that the comment field isn't really intended to be used as an active user integration within a form, but I suppose its possible to use it in this manner. While the first method that comes to mind would be a little bit long, here it is:&lt;/P&gt;&lt;OL style="padding-left: 60px;"&gt;&lt;LI&gt;Create a new form stencil that includes a 'Comment' field that would show up in the Form Editor toolbar on the left.&lt;/LI&gt;&lt;LI&gt;Create the additional Java code necessary to handle the additional form field type, that would include posting to the REST API for the given process instance.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I'm very accustomed to adding unusual customizations to the app, so that's where my bias for creating my own field comes from &lt;IMG src="https://connect.hyland.com/legacyfs/online/alfresco/emoticons/silly.png" /&gt;&amp;nbsp;Let's dig a little bit deeper and see what options are available.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-JEarles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 15:53:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-does-one-implement-the-comment-feature-via-activiti-designer/m-p/12504#M5490</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-02-17T15:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: How does one implement the 'Comment' feature via Activiti Designer?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-does-one-implement-the-comment-feature-via-activiti-designer/m-p/12505#M5491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for taking the time to respond to my question.&lt;/P&gt;&lt;P&gt;While the&amp;nbsp;'&amp;nbsp;ACT_HI_COMMENT ' table will accept input via use of Java APIs, I was hoping I could leverage from it&amp;nbsp;when creating user forms/tasks with Activiti Designer.&amp;nbsp; I realize one can create custom types to introduce new field types , but if I'm not mistaken, these are subsequently recorded to the ACT_RU_VARIABLE and ACT_HI_VARINST table.&amp;nbsp; Unfortunately, the constraint of varchar2(2000) does not bode well when 'collecting' use input across a number of tasks for a given workflow.&amp;nbsp; In the workflow, we have a number of review steps, where one will provide a disposition and comments.&amp;nbsp; The desire is to provide visibility to all of these comments at any subsequent task in the flow.&amp;nbsp; I currently have a working solution whereby the user can click on a button on the form, which will launch a pop up window that displays a concatenation of all the comments.&amp;nbsp; When I recently noticed the existence of the ACT_HI_COMMENTS table, I thought there might be an opportunity to&amp;nbsp;perform this processing in a more effective and efficient manner.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached an example image of my attempt to use 'comment'&amp;nbsp; in Activiti Designer&amp;nbsp;when building the form.&amp;nbsp; I&amp;nbsp;understand why it doesn't work as is,&amp;nbsp;I was just trying to&amp;nbsp;figure out how I could provide a user&amp;nbsp;input field mapped to this comments table.&amp;nbsp;All our workflows are generated via the Activiti Designer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 11:40:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-does-one-implement-the-comment-feature-via-activiti-designer/m-p/12505#M5491</guid>
      <dc:creator>jmzags</dc:creator>
      <dc:date>2017-02-22T11:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: How does one implement the 'Comment' feature via Activiti Designer?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-does-one-implement-the-comment-feature-via-activiti-designer/m-p/12506#M5492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't aware of this, but I just found a &lt;A _jive_internal="true" href="https://community.alfresco.com/thread/225254-saving-comment-in-process-without-user-task" rel="nofollow noopener noreferrer"&gt;previous question&lt;/A&gt;&amp;nbsp;that highlights how to save a comment to a live ProcessInstance. Here is the rest of the &lt;A href="https://www.activiti.org/javadocs//org/activiti/engine/task/class-use/Comment.html" rel="nofollow noopener noreferrer"&gt;API documentation&lt;/A&gt; referring to the Comment interface. So you could have the user enter a comment that stored in a local variable, then you save the comment using:&lt;/P&gt;&lt;TABLE border="0" cellpadding="3" cellspacing="0" style="color: #353833; border-bottom: 1px solid #eeeeee; border-left: 1px solid #eeeeee; border-right: 1px solid #eeeeee;" summary="Use table, listing methods, and an explanation"&gt;&lt;TBODY&gt;&lt;TR class="" style="background-color: #eeeeef;"&gt;&lt;TD class="" style="font-size: 13px; padding: 8px 0px 3px 10px;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;TaskService.&lt;/SPAN&gt;&lt;CODE style="margin-top: 8px; padding-top: 4px;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;&lt;A href="https://www.activiti.org/javadocs//org/activiti/engine/TaskService.html#addComment-java.lang.String-java.lang.String-java.lang.String-java.lang.String-" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" rel="nofollow noopener noreferrer"&gt;addComment&lt;/A&gt;&lt;/SPAN&gt;(&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;taskId, &lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;processInstanceId, &lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;type, &lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;message)&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;then get them back with the taskService:&lt;/P&gt;&lt;TABLE border="0" cellpadding="3" cellspacing="0" style="color: #353833; border-bottom: 1px solid #eeeeee; border-left: 1px solid #eeeeee; border-right: 1px solid #eeeeee;" summary="Use table, listing methods, and an explanation"&gt;&lt;TBODY&gt;&lt;TR class="" style="background-color: #eeeeef;"&gt;&lt;TD class="" style="font-size: 13px; padding: 8px 0px 3px 10px;"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;TaskService.&lt;/SPAN&gt;&lt;CODE style="margin-top: 8px; padding-top: 4px;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;&lt;A href="https://www.activiti.org/javadocs//org/activiti/engine/TaskService.html#getTaskComments-java.lang.String-" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" rel="nofollow noopener noreferrer"&gt;getTaskComments&lt;/A&gt;&lt;/SPAN&gt;(&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;taskId)&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;CODE style="margin-top: 8px; padding-top: 4px;"&gt;&lt;SPAN class="" style="background-color: #eeeeef; font-weight: bold;"&gt;TaskService.&lt;/SPAN&gt;&lt;CODE style="background-color: #eeeeef;"&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;&lt;A href="https://www.activiti.org/javadocs//org/activiti/engine/TaskService.html#getProcessInstanceComments-java.lang.String-" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" rel="nofollow noopener noreferrer"&gt;getProcessInstanceComments&lt;/A&gt;&lt;/SPAN&gt;(&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&amp;nbsp;processInstanceId)&lt;/CODE&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that more of what you're looking for? It looks like those comments get saved in the ACT_HI_COMMENT table, also.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you wanted a more custom solution:&lt;/P&gt;&lt;P&gt;Another (more free form) way to do what you're proposing&amp;nbsp;would be to create your own new DB table, where you can use any length of VARCHAR necessary, that would store an association of comments and a TASK_ID_. Then access it similar to my previous suggestion by creating the additional REST layer in Java that would return the comment list. Although, since you already have a working solution, developing all of the additional code base might not be worth it.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 19:25:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-does-one-implement-the-comment-feature-via-activiti-designer/m-p/12506#M5492</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-02-22T19:25:37Z</dc:date>
    </item>
  </channel>
</rss>

