cancel
Showing results for 
Search instead for 
Did you mean: 

How to Run a process contentiously without interruption ?

pavitra
Champ in-the-making
Champ in-the-making
I am using activiti , I want to run my process contentiously, without interruption. 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.
please find the zip file attached in Github https://github.com/Activiti/activiti-unit-test-template/files/302768/simple-activiti.zip
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
I haven't looked into it in detail, but I see you're using <bean id="dataSource" destroy-method="" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> … without a connection pool. The default one is very basic and not optimized. 'Hanging' is exactly what could happen then when doing lots of async things. Add a connection pool like c3p0, dbcp, Hikari, etc.
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.