cancel
Showing results for 
Search instead for 
Did you mean: 

task operations taking time when adding business logic in user task events

ganeshr
Champ in-the-making
Champ in-the-making
Hi,

   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.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
There are ways to make listeners async:
- You could simply fire off to some queue. The event is then handled by a queue processor. This is outside of Activiti
- You can easily create async task listeners, see the code mentioned at http://www.jorambarrez.be/blog/2013/07/23/advanced-activiti-scripting , there an AsyncTaskListener is used which you can adapt for your need.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.