正在解析 'The process engine you are trying to access does not exist'
Resolving 'The process engine you are trying to access does not exist'
我在我的应用程序中 运行ning 嵌入式 camunda 引擎。现在我想 运行 第二个带驾驶舱的 camunda 引擎在具有相同数据库的不同容器上。我所做的基本上是我的主要应用程序配置的 copy-paste 仅将依赖项从 camunda-bpm-spring-boot-starter
切换到 camunda-bpm-spring-boot-starter-webapp
。我可以访问驾驶舱主页,但系统立即提示我 The process engine you are trying to access does not exist
,我不明白为什么?在启动时,我可以看到创建了我的 SpringProcessEngineConfiguration
bean 以及 ProcessEngineFactoryBean
bean。
然而:
BpmPlatform.getProcessEngineService().getProcessEngineNames();
returns空集。
你能看看并指出我的错误吗?
主应用程序 class:
@SpringBootApplication
public class CamundaCockpitApplication {
public static void main(String[] args) {
SpringApplication.run(CamundaCockpitApplication.class, args);
BpmPlatform.getProcessEngineService().getProcessEngineNames();
}
卡蒙达会议:
@Configuration
@RequiredArgsConstructor
public class EngineConfiguration {
private final DataSource dataSource;
private final PlatformTransactionManager transactionManager;
private final ResourcePatternResolver resourcePatternResolver;
@Bean
public SpringProcessEngineConfiguration springProcessEngineConfiguration() {
SpringProcessEngineConfiguration springConfiguration = new SpringProcessEngineConfiguration();
springConfiguration.setDataSource(dataSource);
springConfiguration.setTransactionManager(transactionManager);
springConfiguration.setDatabaseSchemaUpdate("false");
springConfiguration.setJobExecutorActivate(false);
springConfiguration.setHistory("full");
springConfiguration.setJdbcBatchProcessing(false);
return springConfiguration;
}
@Bean
public ProcessEngineFactoryBean processEngineFactoryBean() {
ProcessEngineFactoryBean engine = new ProcessEngineFactoryBean();
engine.setProcessEngineConfiguration(springProcessEngineConfiguration());
return engine;
}
}
您需要在主 class 中添加 @EnableProcessApplication
注释。
见https://docs.camunda.org/manual/7.9/user-guide/spring-boot-integration/process-applications/
我在我的应用程序中 运行ning 嵌入式 camunda 引擎。现在我想 运行 第二个带驾驶舱的 camunda 引擎在具有相同数据库的不同容器上。我所做的基本上是我的主要应用程序配置的 copy-paste 仅将依赖项从 camunda-bpm-spring-boot-starter
切换到 camunda-bpm-spring-boot-starter-webapp
。我可以访问驾驶舱主页,但系统立即提示我 The process engine you are trying to access does not exist
,我不明白为什么?在启动时,我可以看到创建了我的 SpringProcessEngineConfiguration
bean 以及 ProcessEngineFactoryBean
bean。
然而:
BpmPlatform.getProcessEngineService().getProcessEngineNames();
returns空集。 你能看看并指出我的错误吗?
主应用程序 class:
@SpringBootApplication
public class CamundaCockpitApplication {
public static void main(String[] args) {
SpringApplication.run(CamundaCockpitApplication.class, args);
BpmPlatform.getProcessEngineService().getProcessEngineNames();
}
卡蒙达会议:
@Configuration
@RequiredArgsConstructor
public class EngineConfiguration {
private final DataSource dataSource;
private final PlatformTransactionManager transactionManager;
private final ResourcePatternResolver resourcePatternResolver;
@Bean
public SpringProcessEngineConfiguration springProcessEngineConfiguration() {
SpringProcessEngineConfiguration springConfiguration = new SpringProcessEngineConfiguration();
springConfiguration.setDataSource(dataSource);
springConfiguration.setTransactionManager(transactionManager);
springConfiguration.setDatabaseSchemaUpdate("false");
springConfiguration.setJobExecutorActivate(false);
springConfiguration.setHistory("full");
springConfiguration.setJdbcBatchProcessing(false);
return springConfiguration;
}
@Bean
public ProcessEngineFactoryBean processEngineFactoryBean() {
ProcessEngineFactoryBean engine = new ProcessEngineFactoryBean();
engine.setProcessEngineConfiguration(springProcessEngineConfiguration());
return engine;
}
}
您需要在主 class 中添加 @EnableProcessApplication
注释。
见https://docs.camunda.org/manual/7.9/user-guide/spring-boot-integration/process-applications/