As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
@Bean(name = "processEngineConfiguration") public ProcessEngineConfigurationImpl processEngineConfiguration() { SpringProcessEngineConfiguration processEngineConfiguration = new SpringProcessEngineConfiguration(); processEngineConfiguration.setClassLoader(getClass().getClassLoader()); processEngineConfiguration.setDataSource(dataSource()); // This is a postgres DB processEngineConfiguration.setDatabaseSchema(activitiSchema); // Have a separate schema for activiti processEngineConfiguration.setDatabaseSchemaUpdate("true"); processEngineConfiguration.setTransactionManager(annotationDrivenTransactionManager()); processEngineConfiguration.setJobExecutorActivate(false); processEngineConfiguration.setAsyncExecutorEnabled(true); processEngineConfiguration.setAsyncExecutorActivate(true); processEngineConfiguration.setHistory("full"); processEngineConfiguration.setMailServerHost(mailServer); processEngineConfiguration.setMailServerPort(mailServerPort); return processEngineConfiguration; }
How can I configure the process engine so that only one server executes any given task?