Search code examples
javaspringspring-bootactivitibpmn

How to disable activiti auto deployment on Spring Boot project


I have a Spring Boot project where I used activiti-spring-boot-starter-basic 5.22 dependency.

But whenever I am running the Spring Boot app the processes in src/main/resources/processes will always get deploy if it has been changed and I don't want it to deploy.

How can I disable auto deploy on Spring Boot?


Solution

  • You can add the following properties to your application.properties file in your spring boot application (examples below):

    spring.activiti.checkProcessDefinitions = true
    spring.activiti.processDefinitionLocationPrefix = classpath:/processes/
    spring.activiti.processDefinitionLocationSuffixes = *.bpmn20.xml, *.bpmn
    

    Cheers, Greg