AnsweredAssumed Answered

Run Background jobs in Activiti Explorer

Question asked by shuchi on Dec 4, 2015
Latest reply on Dec 10, 2015 by shuchi

I have a use-case wherein I want to assign multiple tasks on a single click of button in Activiti Explorer. The problem with this is since the Engine Service API for Task assignment is a synchronous call, the UI keeps waiting if the number of tasks is large. I want to move this operation to a background job and have a call back to Explorer (if possible) or user can just refresh the status after some time.

For running background jobs, I need to create a thread pool. But creating a thread pool for every web request is a waste. At which level, do I associate the thread pool?

Can anyone tell me how I can achieve the background job logic?