How can I filter which models are automatically deployed?

I’ve create a springboot based app and started to create some bmpn models.
But I’m getting errors because not my models are ok for now.
So I would like to filter which one should be automatically deployed.

Is there a way to do that ?

thanks

Hi @cvgaviao,

You can filter by source when you query for deployments.
(Get Deployments | docs.camunda.org)

The source is set to “Camunda Modeler” if your model is deployed from the modeler.

You can set the source explicitly if you do the deployment using the API. (deployment-source form part)
(Post Deployment | docs.camunda.org)

Hi @hassang , thanks for you answer.
But currently I’m starting the app using the IDE.

I did some research and found this page: Automatic Resource Deployment | docs.camunda.org

But I was not able to find some equivalent for spring-boot. I tried to create a method returning CamundaProcessEngineConfiguration, but I didn’t find any method or parameter to set a deploymentResources. Is there a way ?

I found a very simple way.
In my project’s application.yaml I’ve added this:

camunda.bpm:
  auto-deployment-enabled: true
  deployment-resource-pattern: classpath:bpmn/process.bpmn,classpath*:**/*.dmn
1 Like