cancel
Showing results for 
Search instead for 
Did you mean: 

How to Start the Activiti process Asynchronously

dattatrayhkulka
Champ in-the-making
Champ in-the-making
Hi,

I have a requirement, wherein I want to my Activiti process to run in asynchronous  mode.

I tried to set the "async = true" for my first task. But it didn't work.

Is there any other way?

regards,
dattatray.

3 REPLIES 3

smirzai
Champ on-the-rise
Champ on-the-rise
That should do the job.
How you check if it has started asynchronously?

dattatrayhkulka
Champ in-the-making
Champ in-the-making
We tried with that option "async = true"
But the activiti process was not triggered.

So we made one more change to configuration <property name="jobExecutorActivate" value="true" />

With this change, every 5 seconds the thread checks if a new process needs to be started.

Two questions -
1. Is this the right way to start the asynchronous process?
2. Can we override the default 5 second interval for the thread to check any new processes?


jbarrez
Star Contributor
Star Contributor
1. Yes, the alternative is of course starting it async yourself in your own threadpool
2. Yes, the jobexecutor settings can be changed