11-03-2017 09:41 AM
We are having a problem with a boundary timer event not firing. We realize the typical issue for this is <property name="jobExecutorActivate" value="true"/> has not been set to true. That is not the issue here. But after
setting jobExecutorActivate and AsyncExecutorActivate true the application is not getting up, also it does
not give any specific error. Please find below configuration for more details
11-06-2017 08:43 AM
Hi,
The problem with the asyncExecutor configuration. We have configured it as follows and it worked
@Bean
@DependsOn({ "dataSource", "transactionManager" })
public SpringProcessEngineConfiguration getConfiguration() {
final SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration();
config.setAsyncExecutorActivate(true);
config.setJobExecutorActivate(true);
config.setDataSource(this.dataSource);
config.setTransactionManager(this.transactionManager);
config.setDatabaseSchemaUpdate(this.schemaUpdate);
config.setHistory(this.history);
config.setTransactionsExternallyManaged(this.transactionsExternallyManaged);
config.setDatabaseType(this.dbType);
// Async Job Executor
final DefaultAsyncJobExecutor asyncExecutor = new DefaultAsyncJobExecutor();
asyncExecutor.setMaxPoolSize(50);
asyncExecutor.setQueueSize(100);
config.setAsyncExecutor(asyncExecutor);
return config;
}
thanks Ciju for your inputs.
11-06-2017 08:16 AM
Hi,
It could be the external quartz schedule causing this issue. The best way to verify this is to write a simple unit test. I'm not aware of any issues with the boundary timer event not firing. Which version of activiti are you using?
Ciju
11-06-2017 08:43 AM
Hi,
The problem with the asyncExecutor configuration. We have configured it as follows and it worked
@Bean
@DependsOn({ "dataSource", "transactionManager" })
public SpringProcessEngineConfiguration getConfiguration() {
final SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration();
config.setAsyncExecutorActivate(true);
config.setJobExecutorActivate(true);
config.setDataSource(this.dataSource);
config.setTransactionManager(this.transactionManager);
config.setDatabaseSchemaUpdate(this.schemaUpdate);
config.setHistory(this.history);
config.setTransactionsExternallyManaged(this.transactionsExternallyManaged);
config.setDatabaseType(this.dbType);
// Async Job Executor
final DefaultAsyncJobExecutor asyncExecutor = new DefaultAsyncJobExecutor();
asyncExecutor.setMaxPoolSize(50);
asyncExecutor.setQueueSize(100);
config.setAsyncExecutor(asyncExecutor);
return config;
}
thanks Ciju for your inputs.
11-06-2017 08:46 AM
Great, thanks for posting the answer!
CIju
Explore our Alfresco products with the links below. Use labels to filter content by product module.