cancel
Showing results for 
Search instead for 
Did you mean: 

Problem iin Activiti - Async

vimalan_dharma
Champ in-the-making
Champ in-the-making
Hi,

I have taken sample async bpmn from your site. Where i added service task instead of script task. when i run this activiti, i got the response immediately. Thats perfect. But the problem here is in the service task delegate the task to the Java class , this java class is never ever executed. I dont know why.

when i remove the activiti:async=true. This above java deleagate class has been executed perfectly.
The scenario is, Calling this activiti from UI. I have to send 200 response code to the UI side to not wait until this activiti completes.
Moreover my activiti takes longer time to complete. In this time UI has aborted the connection afterthat not able to proceed.

This is my sample bpmn.xml file. Taken AsynScript file from ur site. Here service task is used instead of calling script task. Please help me on this am trying lot of possibilities , no idea of how to run activiti in background.

2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

Is the job executor activated? Because the job executor executes asynchronous jobs.

Best regards,

Thanks Tijs.

It was working after setting true to the JobExecutor.