<?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: How to claim multiple tasks at once? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-claim-multiple-tasks-at-once/m-p/192486#M145616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said earlier Claim of 100 tasks and each task will publish 2 events once claim is done and for this process its taking approx. 4 min. By the way when I look into the source code, I notice that, only one thread Thread-X is taking care of all claiming all 100 tasks one by one and publishing n-claim events. Most the process time is spent by the Thread-X at events publishing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As of now, I am separate out publishing into a new Therad in TaskListener Implementer notice() method. With this change, claiming 100 tasks duration bring down to 30seconds. Instead of this, Is it correct way to separate out the publishing events into a new Thread at TaskEntity level itself??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Swamy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Sep 2014 08:10:35 GMT</pubDate>
    <dc:creator>swamy2156</dc:creator>
    <dc:date>2014-09-21T08:10:35Z</dc:date>
    <item>
      <title>How to claim multiple tasks at once?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-claim-multiple-tasks-at-once/m-p/192484#M145614</link>
      <description>Hi.,I can claim a task by calling taskService.claim(taskId, userName);Similarly Is there a way to claim multiple tasks(a.k.a bulk tasks) all at once. In my case, my task view page has pagination which can show tasks up to 100 tasks at a time and I provided CLAIM ALL flexibility to end user. When CLA</description>
      <pubDate>Wed, 13 Aug 2014 11:22:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-claim-multiple-tasks-at-once/m-p/192484#M145614</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2014-08-13T11:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to claim multiple tasks at once?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-claim-multiple-tasks-at-once/m-p/192485#M145615</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 all is not provided by API. You can extend the API.&lt;/SPAN&gt;&lt;BR /&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>Thu, 14 Aug 2014 04:46:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-claim-multiple-tasks-at-once/m-p/192485#M145615</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-08-14T04:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to claim multiple tasks at once?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-claim-multiple-tasks-at-once/m-p/192486#M145616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said earlier Claim of 100 tasks and each task will publish 2 events once claim is done and for this process its taking approx. 4 min. By the way when I look into the source code, I notice that, only one thread Thread-X is taking care of all claiming all 100 tasks one by one and publishing n-claim events. Most the process time is spent by the Thread-X at events publishing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As of now, I am separate out publishing into a new Therad in TaskListener Implementer notice() method. With this change, claiming 100 tasks duration bring down to 30seconds. Instead of this, Is it correct way to separate out the publishing events into a new Thread at TaskEntity level itself??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Swamy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 08:10:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-claim-multiple-tasks-at-once/m-p/192486#M145616</guid>
      <dc:creator>swamy2156</dc:creator>
      <dc:date>2014-09-21T08:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to claim multiple tasks at once?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-claim-multiple-tasks-at-once/m-p/192487#M145617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Swamy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your statement is: Events publishing is time consuming. Did you investigate why? When you find the cause you can optimize it more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(e.g. implement your own command to claim all tasks…)&lt;/SPAN&gt;&lt;BR /&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>Mon, 22 Sep 2014 06:05:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-claim-multiple-tasks-at-once/m-p/192487#M145617</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-09-22T06:05:58Z</dc:date>
    </item>
  </channel>
</rss>

