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
Solved! Go to Solution.
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.
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
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.
Great, thanks for posting the answer!
CIju
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.