name: ‘camunda-bpm-spring-boot-starter’, version: ‘3.0.0’
generated spring boot app with spring initializer
Im using constructor injection
Hello
Problem description: Every time I restart my app & change 1 file , then all my *.bpmn files are redeployed with new version. I would like the app to redeploy only the changed file with new version.
If possible then how to enable duplicate filtering at spring boot startup ?
I have read this article but since it wont explain to a beginner there is not much I can do with this knowledge.
If I understand you have the same problem as described here.
In Spring Boot it is necessary to have an application.properties-File (or a similar yaml-File if you prefer) in your src\main\ressources-Folder. In this file you can have the settings as described here.
So for your requirement this would be the following entry: camunda.bpm.application.deploy-changed-only=true
I had to rename it to xml other vise it wont let me post the file in the forum.
PS: I also tried this approach but it simply errors out saying:
No qualifying bean of type ‘org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl’ available:
expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:
{@org.springframework.beans.factory.annotation.Autowired(required=true)}
import org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration("camundaProcessEngineConfiguration")
public class CamundaProcessEngineConfiguration {
@Bean
public SpringProcessEngineConfiguration processEngineConfiguration() {
SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration();
config.setDeployChangedOnly(true);
return config;
}
}
I generated the springBoot example with: jhipsterOnline and gradle, then simply added camunda dependency & 2 bpmn files inside \src\main\resources\Process-definitions\
jhipsterSampleApplication_noNodeModulesRequiresYarnInstall>yarn install
jhipsterSampleApplication_noNodeModulesRequiresYarnInstall>yarn start
jhipsterSampleApplication_noNodeModulesRequiresYarnInstall>gradlew or gradlew bootRun or ./gradlew
That example you posted gives me by the way: [ERROR] Non-resolvable import POM: Could not transfer artifact org.camunda.bpm:camunda-bom:pom:7.9.2-ee from/to camunda-bpm-ee (https://app.camunda.com/nexus/content/repositories/camunda-bpm-ee): Not authorized , ReasonPhrase:Unauthorized. @ line 67, column 25