简体   繁体   中英

Camunda Spring Boot Starter version 1.1 to 1.3

Lately I've updated from camunda-bpm-spring-boot-starter version 1.1 to version 1.3. One of the changes for the framework is the "DefaultProcessEngineConfiguration" class.

version 1.1.0

public class DefaultProcessEngineConfiguration extends AbstractCamundaConfiguration implements CamundaProcessEngineConfiguration {
  ...
  public void apply(SpringProcessEngineConfiguration configuration) {...}
}

version 1.3.0

public class DefaultProcessEngineConfiguration extends AbstractCamundaConfiguration implements CamundaProcessEngineConfiguration {
  ...
  public void preInit(SpringProcessEngineConfiguration configuration) {...}
}

Is it just a name change? Or is it both methods means different things? I've been trying to find out more online, but very limited information.

Before 1.3 we used a custom interface to modify engine configurations. With 1.3 we switched to camundas default interface "ProcessEnginePlugin". This provides preInit(), postInit() and postEngineBuild() hooks and is both, more poweerful and standard compliant. If you are using custom configuration extensions, just rename the method and you are good to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM