<?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 idle period for a task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-idle-period-for-a-task/m-p/67301#M42945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been looking for a way to determine the time a task has been idle before it has been claimed by a candidate user? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I have a process with two sequential &amp;lt;UserTask/&amp;gt; definitions. Both tasks have the potential owner set to a user(xyz). When I now deploy and start the process the start time for the first task is set directly and not when a candidate user claims the task. And that´s what I define to be the "idle time" of a task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the project I am working on currently we define the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;running time = idle time + process time&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;running time: the total duration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;idle time: starting after previous task has completed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;process time: time it took a user to complete the task (from "claim" to "complete")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get this figure for tasks? I have not found any way through the API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´d be glad if somebody could help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Arne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2011 18:20:39 GMT</pubDate>
    <dc:creator>arne</dc:creator>
    <dc:date>2011-06-14T18:20:39Z</dc:date>
    <item>
      <title>Get idle period for a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-idle-period-for-a-task/m-p/67301#M42945</link>
      <description>Hi there,I have been looking for a way to determine the time a task has been idle before it has been claimed by a candidate user? If I have a process with two sequential &amp;lt;UserTask/&amp;gt; definitions. Both tasks have the potential owner set to a user(xyz). When I now deploy and start the process the</description>
      <pubDate>Tue, 14 Jun 2011 18:20:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-idle-period-for-a-task/m-p/67301#M42945</guid>
      <dc:creator>arne</dc:creator>
      <dc:date>2011-06-14T18:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get idle period for a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-idle-period-for-a-task/m-p/67302#M42946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is no such thing built in by default in activiti. What you could do, is add a task-listener to your tasks which gets triggered on event "assignement". In this listener, you can set the current time in a task-local variable (delegateTask.setVariableLocal()).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you task is completed (perhaps in another tasklistener) you have start-time, time that task was claimed and end time. Alternatively, if you wet your history level high enough,&amp;nbsp; the task-local variables (and task) will be available in the history, so you can fetch the times for completed tasks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 06:15:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-idle-period-for-a-task/m-p/67302#M42946</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-15T06:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get idle period for a task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-idle-period-for-a-task/m-p/67303#M42947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;used the TaskListeners… but from there we have decided to store a 'task history' in a separate table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Arne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 16:17:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-idle-period-for-a-task/m-p/67303#M42947</guid>
      <dc:creator>arne</dc:creator>
      <dc:date>2011-06-20T16:17:43Z</dc:date>
    </item>
  </channel>
</rss>

