<?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 task operations taking time when adding business logic in user task events in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/task-operations-taking-time-when-adding-business-logic-in-user/m-p/129890#M91271</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;&amp;nbsp;&amp;nbsp; I have used user task with custom task listener and in task listener I have added logic of sending some notifications when task is created/assigned/completed. So the problem is when claiming a task or completing a task, the task service is taking more than one second to get response back, as task event is getting fired and executing notification logic, because of this task operation is taking time I guess. When I performing operation for list of tasks, so it is taking lot of time. How to reduce this execution time, is there any other approach of firing events asynchronously.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 14:22:25 GMT</pubDate>
    <dc:creator>ganeshr</dc:creator>
    <dc:date>2013-07-19T14:22:25Z</dc:date>
    <item>
      <title>task operations taking time when adding business logic in user task events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-operations-taking-time-when-adding-business-logic-in-user/m-p/129890#M91271</link>
      <description>Hi,&amp;nbsp;&amp;nbsp; I have used user task with custom task listener and in task listener I have added logic of sending some notifications when task is created/assigned/completed. So the problem is when claiming a task or completing a task, the task service is taking more than one second to get response back, as t</description>
      <pubDate>Fri, 19 Jul 2013 14:22:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-operations-taking-time-when-adding-business-logic-in-user/m-p/129890#M91271</guid>
      <dc:creator>ganeshr</dc:creator>
      <dc:date>2013-07-19T14:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: task operations taking time when adding business logic in user task events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-operations-taking-time-when-adding-business-logic-in-user/m-p/129891#M91272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are ways to make listeners async:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- You could simply fire off to some queue. The event is then handled by a queue processor. This is outside of Activiti&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- You can easily create async task listeners, see the code mentioned at &lt;/SPAN&gt;&lt;A href="http://www.jorambarrez.be/blog/2013/07/23/advanced-activiti-scripting" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2013/07/23/advanced-activiti-scripting&lt;/A&gt;&lt;SPAN&gt; , there an AsyncTaskListener is used which you can adapt for your need.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 07:49:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-operations-taking-time-when-adding-business-logic-in-user/m-p/129891#M91272</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-07-24T07:49:36Z</dc:date>
    </item>
  </channel>
</rss>

