I’m trying to create SpringBoot app with camunda. I have file dmn_test.dmn in resource folder, it deploing during start application. Then i upload new version of dmn using java api. Works fine, but then i am sending the same file again(without changes) and camunda adds a new version of file, but its the same as previous
I would like to redeploy it again but only if file differs of already deployed. I tryed to do it by java code:
@Configuration
public class CamundaConfig extends AbstractCamundaConfiguration {
@Override
public void preInit(SpringProcessEngineConfiguration springProcessEngineConfiguration) {
springProcessEngineConfiguration.setDeployChangedOnly(true);
}
}
Or property deploy-changes-only in application.yaml:
No, i don’t have @EnabledProcessApplication. I just use default camunda-spring-boot-started configuration. My dmn located in resources deployed automatically
I encounter this same issue of deploy-changed-only not working. I have tried all of these suggestions and nothing has worked. I am using a very vanilla docker deployment of BPM run (camunda/camunda-bpm-platform:run-7.17.0)
I have the same issue. I am using SpringBoot with Camunda Version 7.17. My application.properties file includes deployChangedOnly=true but it still deploys every bpmn in my resource folder, even if just one diagramm has changes.
I found my mistake. I didn’t use the annotation @EnableProcessApplication but I extended the application class with SpringBootProcessApplication. After deleting that extentsion autodeployment is working properly.