添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
买醉的手链  ·  左卫民 | ...·  1 月前    · 
腼腆的皮带  ·  Library Search·  6 月前    · 
悲伤的足球  ·  陶作坊│海棠盞托·  6 月前    · 
I try to define the process engine name in my camunda spring boot application but somehow it only load the default process engine. Could you please share the configuration required to configure the camunda process engine name in spring boot application. Thank you Gaurav Gupta @ggupta011 It can be achieved by creating a configuration class and SpringProcessEngineConfiguration bean. Hope this helps!
@Configuration
public class CamundaAppContext {
  @Bean
  public SpringProcessEngineConfiguration engineConfiguration(DataSource dataSource, PlatformTransactionManager transactionManager) {
    SpringProcessEngineConfiguration configuration = new SpringProcessEngineConfiguration();
    configuration.setProcessEngineName("<NAMEHERE>");
    // set other attributes for datasource, schema update etc
    return configuration;

I would like to add two more options:

  • There is a configuration parameter camunda.bpm.processEngineName available which allows modifying the name:
  • camunda.bpm.processEngineName: "Insert Name!"
    
  • I would avoid providing a custom bean with a configuration instance. The main reason is that the proposed answer by @Arjun1007 would disable plugins. The default process engine configuration bean provided by Camunda respects ProcessEnginePlugin beans and configured plugins via xml as well. A similar approach without this downside would be configuring the process engine name via custom plugin tho:
  • @Component
    public class ProcessEngineNamePlugin extends AbstractProcessEnginePlugin {
        @Override
        public void postInit(ProcessEngineConfigurationImpl processEngineConfiguration) {
            processEngineConfiguration.setProcessEngineName("Insert name!");
    

    Kind regards
    Adagatiya

    Solution by @Adagatiya is a very neat solution. We can use plugins like these to update any configuration that we want.

    This should be included in the official docs as well.

    爱看球的企鹅 FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/cuda/nvvm/lib64' 玉树临风的楼房 React Native Android设备连接到ADB后 yarn start操作后找不到设备_warn no apps connected. sending "devmenu" to all r-