<?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: History by User Task Claim time in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57040#M34614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the information. I thought the Assignment event happens prior to the 'create' event so that the setting the variable in an task listner would not have the correct time? i.e Does the assignment event happen again when a user claims a task or a manager delegates the task to a user? Or is it just a one time reference when the task gets created?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 May 2011 15:15:13 GMT</pubDate>
    <dc:creator>ruedesilva</dc:creator>
    <dc:date>2011-05-09T15:15:13Z</dc:date>
    <item>
      <title>History by User Task Claim time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57037#M34611</link>
      <description>Hi,The project that we are working on requires that the system track how long a user spends on a task. This has to be starting from when a user claimed the task (not when the task started). Currently I do not see this in the DB or any mechanism to handle this. The reason for this is that the company</description>
      <pubDate>Thu, 05 May 2011 21:06:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57037#M34611</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-05-05T21:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: History by User Task Claim time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57038#M34612</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;You could use an task-listener for this. You define the handler to the tasks that need to be monitored, triggering on the event "assignement". In the assignement-handler code, you can (for example) add a local variable to the task (delegateTask.setVariableLocal("claimTime", Calendar.getInstance().getTime()). If you set the histroy-level high enough, task-variables are stored in the history and can be queried for. With some code (or custom query), I guess you can calculate the duration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#taskListeners" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#taskListeners&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 09:10:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57038#M34612</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-05-09T09:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: History by User Task Claim time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57039#M34613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, that information is not availble in the database at this point, you'll need to add your own variable to track this time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 09:20:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57039#M34613</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-05-09T09:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: History by User Task Claim time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57040#M34614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the information. I thought the Assignment event happens prior to the 'create' event so that the setting the variable in an task listner would not have the correct time? i.e Does the assignment event happen again when a user claims a task or a manager delegates the task to a user? Or is it just a one time reference when the task gets created?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 15:15:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57040#M34614</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-05-09T15:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: History by User Task Claim time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57041#M34615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the activiti:assignee (or BPMN 2.0 humanperformer counterpart) is used, the assignement-event is fired RIGHT before the create event. In this case, it's the same as the create time, so you can just use that time, no? If assignee is null at that time, you know that the task is created unclaimed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When assignement is set later (using service call for example), you can check if your task-variables already contain a "claim" date from prior assignements (or assignement when task was created). So yes, each assignment causes an event to be thrown.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 07:08:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57041#M34615</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-05-10T07:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: History by User Task Claim time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57042#M34616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;claim_time_ is now a column in the act_hi_taskinst table. Is there a way (in 5.16.3) to access this value through a query OR do I still have to track my own instance of date claimed in a local variable instance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bruce.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 19:45:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57042#M34616</guid>
      <dc:creator>dbrucegrant</dc:creator>
      <dc:date>2015-02-13T19:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: History by User Task Claim time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57043#M34617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, it seems that the query doesn't support claim time at the moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheesy answer: always welcoming pull requests &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 15:50:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57043#M34617</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-02-18T15:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: History by User Task Claim time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57044#M34618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you create your own createNativeTaskQuery() to access the claim time? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 05:06:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57044#M34618</guid>
      <dc:creator>alin</dc:creator>
      <dc:date>2015-06-19T05:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: History by User Task Claim time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57045#M34619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure that's possible. You can use the NativeHistoricTaskInstanceQuery. But we should add it to the default API as well.&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>Sun, 21 Jun 2015 18:40:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/history-by-user-task-claim-time/m-p/57045#M34619</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-06-21T18:40:18Z</dc:date>
    </item>
  </channel>
</rss>

