Camunda auto deployment folder location

I have folder containing bpmn files outside of src folder. I want to deploy it’s processes on app start. Is it possible to set deployment-resource-pattern to target said folder, and if so in what way?

You can create a DeploymentBuilder by using RepositortyService#createDeployment().

You can then use addInputStream to add anything you can get a stream from. Note that you still have to provide a resourceName (like "my-process.bpmn!).

Another option for further decoupling would be to use the rest API for the deployment, so the engine won’t be responsible for scanning and deploying but an additional script/service.