<?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: Task event not firing when calling performing task claim operation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157120#M111319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The event is fired on the lowest possible level&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if(!StringUtils.equals(initialAssignee, assignee)) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fireEvent(TaskListener.EVENTNAME_ASSIGNMENT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initialAssignee = assignee;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&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;So you should see it. If not, there is something buggy. Could you create a simple unit test that demonstrates this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 07:30:30 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2014-04-24T07:30:30Z</dc:date>
    <item>
      <title>Task event not firing when calling performing task claim operation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157119#M111318</link>
      <description>I have a timer boundary event in our business process. Service task will be invoked when timer job fires. In this service task I'm invoking taskservice.claim method to set the assignee for the task. Task assignee is getting changed with userid but the task event(assignment) is not getting fired.Wher</description>
      <pubDate>Tue, 22 Apr 2014 19:54:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157119#M111318</guid>
      <dc:creator>ganeshr</dc:creator>
      <dc:date>2014-04-22T19:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Task event not firing when calling performing task claim operation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157120#M111319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The event is fired on the lowest possible level&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if(!StringUtils.equals(initialAssignee, assignee)) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fireEvent(TaskListener.EVENTNAME_ASSIGNMENT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initialAssignee = assignee;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&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;So you should see it. If not, there is something buggy. Could you create a simple unit test that demonstrates this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 07:30:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157120#M111319</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-04-24T07:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Task event not firing when calling performing task claim operation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157121#M111320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My code has bug. Sorry for that. I have corrected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 18:31:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157121#M111320</guid>
      <dc:creator>ganeshr</dc:creator>
      <dc:date>2014-04-25T18:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Task event not firing when calling performing task claim operation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157122#M111321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe; having a separate listener event for "Claim" activity&amp;nbsp; will add more value to any bpm systems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; events like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Created / Deleted / Completed - gives the direct meaning that , when the task has been created ,removed&amp;nbsp; and completed respectively.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Assigned - is tricky,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; – when the task has been assigned? it's like an epic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; – the task may be assigned / reassigned any no.of times by manager / team leader or by system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; – it doesn't mean, the user claimed the task and started working on it&amp;nbsp; immediately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; – the user may take a n. no.of day to complete the task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a business user, i want to know;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when the task has been assigned to that user? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the user actually claimed it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what's the exact time or&amp;nbsp; min's that the user spent on that task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, The SLA perspective, there's no provision now in the system to provide that " How much time , the user actually spent on the case till Complete"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eg: i cant say that ( completed - assigned ) or duration column in act_hi_task table - will give the exact value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please clarify, is anything wrong having a separate task listener event for claim.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: How many times it's been assigned/reassigned or claimed - will lead to different issue - that can be handled separately by the new event subscription tables or will figure out the solution later &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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference Thread:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/history-user-task-claim-time" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/history-user-task-claim-time&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:47:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157122#M111321</guid>
      <dc:creator>prakie</dc:creator>
      <dc:date>2015-03-05T12:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Task event not firing when calling performing task claim operation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157123#M111322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem is that 'claim' only makes sense from the candidate group use case. Other tasks will be immediately assigned to an assignee.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see anything wrong with an event listener for it. But from your explanation it seems you are actually looking for the data in the historic tables. In that case, the data is there already: check the claimTime on a historicTaskInstance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 08:20:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157123#M111322</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-03-06T08:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Task event not firing when calling performing task claim operation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157124#M111323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, i believe, historicTaskInstance maintains only the recent claimTime of the Task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the user claims, and reassigns to other user, then that user may claim again! is possible to get all the users claimed time from historicTaskInstance.?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i think, providing claim event listener will meet these kinda requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;some extent i can get the data from act_hi_comment ["AddUserLink"], which will not satisfy the requirement completely.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 12:45:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157124#M111323</guid>
      <dc:creator>prakie</dc:creator>
      <dc:date>2015-03-06T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Task event not firing when calling performing task claim operation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157125#M111324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, i understand now. If you could, can you add a jira for it, so we and you can track it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(or even better, implement it and create a Pull Request ;-))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 12:19:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-event-not-firing-when-calling-performing-task-claim/m-p/157125#M111324</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-03-10T12:19:34Z</dc:date>
    </item>
  </channel>
</rss>

