Hi,
We are using Activiti 5.22.x with Spring Integration, below is the code we are using to create the Process Engine:
SpringProcessEngineConfiguration processEngineConfig = new SpringProcessEngineConfiguration();
processEngineConfig.setDataSource(activitiDataSource());
processEngineConfig.setDatabaseSchemaUpdate("true");
processEngineConfig.setTransactionManager(activitiTransactionManager());
processEngineConfig.setJobExecutorActivate(true);
This code will be deployed into Clustered Environment, Will it create the multiple Process Engine with the JobExecutor set to 'True', if 'Yes' will it cause any problems. While executing Timers and Async Jobs?
The Reason why am i raising this question is, we are running in Dev Environment with one node and also pointing to the same DB from our Local Environment by setting the JobExecutor to True. Due to this we are facing issues with the Async Service Task Jobs. Below is the Exception Scenario:
When the Job gets created for the Async Service Task in Act_ru_job table, we observed that the Service Task is not getting executed and that entry is getting locked for long time. Also the expiration time is revised (increments every 3 mins)every time the Job gets fired, that gives the ActivitiOptimisticLocking Exception every time.
| |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||
|
Will it create the multiple Process Engine with the JobExecutor set to 'True', if 'Yes' will it cause any problems. While executing Timers and Async Jobs?
Can anybody help out with the above() question.. Looking forward for any suggestions ASAP.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.