SpringProcessEngineConfiguration auto deployment feature.
Since 1.2.0 you also have the possibility to do so via SpringBootProcessApplication. This disables the SpringProcessEngineConfiguration
auto-deploy feature and instead uses the required META-INF/processes.xml as an indicator for resource scanning.
This also allows all processes.xml configuration features described [here] (/user-guide/process-applications/the-processes-xml-deployment-descriptor).
To use it, just add the @EnableProcessApplication annotation to your Spring Boot application class:
Using Deployment Callbacks
As when using@EnableProcessApplication we don’t extend the ProcessApplication class,
we can’t use @PostDeploy and @PreUndeploy method annotations. Instead these callbacks
are provided via Spring event publishing mechanism. So you can use the following event listeners: