<?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 How to get workflow history using Java API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-workflow-history-using-java-api/m-p/69604#M22942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is my dilemma. I would like to get the information as seen in the screenshot from the workflow-details page using the Java API for every workflow associated with a document (NodeRef).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/alfresco/19652_Screenshot from 2018-03-16 16-53-58.png" style="width: 620px; height: 113px;" /&gt;&lt;/P&gt;&lt;P&gt;I am especially interested in the "Completed By", "Date Completed" and the "Comment" columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I have done so far:&lt;/P&gt;&lt;P&gt;- got the associated workflows using&amp;nbsp; &amp;nbsp;workflowService.getWorkflowsForContent(NodeRef, boolean)&lt;/P&gt;&lt;P&gt;- got the tasks for each workflow using&amp;nbsp; &amp;nbsp;workflowService.queryTasks(WorkflowTaskQuery, boolean)&lt;/P&gt;&lt;P&gt;- extracted properties for each task with&amp;nbsp; &amp;nbsp;WorkflowTask.getProperties()&lt;/P&gt;&lt;P&gt;At this point I have access to the "completionDate" and "comment"(if available) properties for each task. The problem is with the "Completed by" information. I thought the "assignee" property is what I need but they don't match. For the example in the screenshot the first task (in chronological order) has an assignee of "test1", the second task has an assignee of "null" and the third task has also "test1" and they should be "admin", "test1", "admin" respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to get the "Completed By" info?&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2018 15:14:33 GMT</pubDate>
    <dc:creator>lex91</dc:creator>
    <dc:date>2018-03-16T15:14:33Z</dc:date>
    <item>
      <title>How to get workflow history using Java API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-workflow-history-using-java-api/m-p/69604#M22942</link>
      <description>Hello!So here is my dilemma. I would like to get the information as seen in the screenshot from the workflow-details page using the Java API for every workflow associated with a document (NodeRef).I am especially interested in the "Completed By", "Date Completed" and the "Comment" columns.&amp;nbsp;Here is w</description>
      <pubDate>Fri, 16 Mar 2018 15:14:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-workflow-history-using-java-api/m-p/69604#M22942</guid>
      <dc:creator>lex91</dc:creator>
      <dc:date>2018-03-16T15:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get workflow history using Java API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-workflow-history-using-java-api/m-p/69605#M22943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The assignee does not matter - this property is only used for the initial assignment based on user input. You are looking for the owner of the task. The owner property is used to sync the state of the internal Activiti engine assignment, and will be the user who completed the task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 19:46:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-workflow-history-using-java-api/m-p/69605#M22943</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-16T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get workflow history using Java API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-workflow-history-using-java-api/m-p/69606#M22944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! That was it...I didn't notice the owner property before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 06:09:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-workflow-history-using-java-api/m-p/69606#M22944</guid>
      <dc:creator>lex91</dc:creator>
      <dc:date>2018-03-19T06:09:43Z</dc:date>
    </item>
  </channel>
</rss>

