<?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: Do you have support to trace history when changing assignee or candidate? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154042#M108560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can track the history of identity links with the HistoryService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So setAssignee doesn't set the claim time, that's only done when you execute the claim method.&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>Tue, 11 Feb 2014 15:01:43 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2014-02-11T15:01:43Z</dc:date>
    <item>
      <title>Do you have support to trace history when changing assignee or candidate?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154039#M108557</link>
      <description>Well, hi all.As my topic tittle, I wonder if Activiti support us tracing history when changing assignee or candidate? Or I have to have separate logging when do those actions?</description>
      <pubDate>Tue, 11 Feb 2014 03:39:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154039#M108557</guid>
      <dc:creator>holysoul</dc:creator>
      <dc:date>2014-02-11T03:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have support to trace history when changing assignee or candidate?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154040#M108558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Claim event is recorded&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public void recordTaskClaim(String taskId) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (isHistoryLevelAtLeast(HistoryLevel.AUDIT)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HistoricTaskInstanceEntity historicTaskInstance = getDbSqlSession().selectById(HistoricTaskInstanceEntity.class, taskId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (historicTaskInstance != null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; historicTaskInstance.setClaimTime( ClockUtil.getCurrentTime());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 07:22:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154040#M108558</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-02-11T07:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have support to trace history when changing assignee or candidate?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154041#M108559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. It is helpful for me. However, I think it is time for someone claimed task, it does not really relate to time I change assignee/group, isn't it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have one more question. I use this method to change candidate group, is it okay?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; processEngine.getTaskService().addCandidateGroup(taskId, newGroupID);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; processEngine.getTaskService().deleteCandidateGroup(taskId, oldGroup);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If using this way, how can I track history by using Activiti API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And when I set assignee using "processEngine.getTaskService().setAssignee(taskId, userId)" for someone, is he/her set up default&amp;nbsp; claimTime?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 08:23:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154041#M108559</guid>
      <dc:creator>holysoul</dc:creator>
      <dc:date>2014-02-11T08:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have support to trace history when changing assignee or candidate?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154042#M108560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can track the history of identity links with the HistoryService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So setAssignee doesn't set the claim time, that's only done when you execute the claim method.&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>Tue, 11 Feb 2014 15:01:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154042#M108560</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-02-11T15:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have support to trace history when changing assignee or candidate?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154043#M108561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I try to trace the history of changing assignee. Here are my steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- start process instance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- change assignee of one task : for example&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;processEngine.getTaskService().setAssignee("69", "kermit");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; processEngine.getTaskService().claim("69", "kermit");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- then change again&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;processEngine.getTaskService().setAssignee("69", "gonzo");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; processEngine.getTaskService().claim("69", "gonzo");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- try to trace identifyLink&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;HistoricTaskInstance&amp;gt; listTask = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;listTask = processEngine.getHistoryService().createHistoricTaskInstanceQuery().finished().list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (HistoricTaskInstance historicTaskInstance : listTask) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;HistoricIdentityLink&amp;gt; identityLinks = processEngine.getHistoryService().getHistoricIdentityLinksForTask(historicTaskInstance.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; for(HistoricIdentityLink historicIdentityLink:identityLinks){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; System.out.println(historicTaskInstance.getId()+"/"+historicTaskInstance.getAssignee()+"/"+historicIdentityLink.getUserId()+"/"+historicTaskInstance.getClaimTime()+"/"+historicTaskInstance.getStartTime());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I though that the identityLinks would record the change from gonzo–&amp;gt; kermit–&amp;gt; gonzo. However, it only recorded the newest change: information of the gonzo. So using this way, I can not trace the changing assignee history. Do I mistake somewhere?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 02:53:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154043#M108561</guid>
      <dc:creator>holysoul</dc:creator>
      <dc:date>2014-02-12T02:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have support to trace history when changing assignee or candidate?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154044#M108562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah ok now I understand your question. No that's not being stored in the Activiti tables currently. Of course it's possible to maintain an audit list yourself using the Task listeners. We are thinking about adding an additional history table with exactly this information.&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, 12 Feb 2014 18:01:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154044#M108562</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-02-12T18:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Do you have support to trace history when changing assignee or candidate?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154045#M108563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank trademak. I'm waiting for your great Activiti &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 01:36:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/do-you-have-support-to-trace-history-when-changing-assignee-or/m-p/154045#M108563</guid>
      <dc:creator>holysoul</dc:creator>
      <dc:date>2014-02-13T01:36:08Z</dc:date>
    </item>
  </channel>
</rss>

