cancel
Showing results for 
Search instead for 
Did you mean: 

How to Run a process contentiously with 'N' number of requests ?

pavitra
Champ in-the-making
Champ in-the-making
Hi,
I am using activiti , I want to run my process contentiously, without intervention. I simulated the problem in sample. I am attaching this sample please change the database properties to work. My sample must work for contentiously for 'N' number of requests. I simulated by running 200 times in the sample, some step in the process have to perform some calculation which takes long time. so it should not stuck in middle.I made my process async to log the every step.In the sample it gets hanging for the 119 count.Please help me out to resolve this. I have done the 'asyncExecutor' configuration to consume one step at a time.I did this configuration to process one step after the other step in the synchronous way.Though I made my process as async can I able to process the step one after the other. Because one step data is dependent on next step so.
plz find the zip file attached in Github https://github.com/Activiti/activiti-unit-test-template/files/302768/simple-activiti.zip
3 REPLIES 3

pavitra
Champ in-the-making
Champ in-the-making
Any help ?

martin_grofcik
Confirmed Champ
Confirmed Champ
From the project I did not understand where is the issue.
Could you add some jUnit test with assertions there?

Regards
Martin

pavitra
Champ in-the-making
Champ in-the-making
Hi,
Thanks for the reply, I have wirtten Test case for the above  sample program.Please find this link: https://github.com/Activiti/activiti-unit-test-template/commit/2f95b2ae46c411755f4d268343b68b9da604d... had written testcase without assertion. I want to run the process for n number of time without halt. I demonstrated by adding loop that runs for 1000 times.But it gets halt for 150 count, If i run again it halts for 161 etc..  ny onfiguration has to be done ? please let me know.