Skip to content

Commit

Permalink
Added possibility to configure resource pattern in via Spring (relate…
Browse files Browse the repository at this point in the history
…d to #18)
  • Loading branch information
berndruecker committed Jun 21, 2022
1 parent a51e3a0 commit bc2ec1e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -91,6 +91,16 @@ public class ExampleRestEndpoint {
// ...
```

#### Auto Deployment

You can auto-deploy resources from your project, like BPMN processes. As default, all `.bpmn`, `.dmn`, and `.form` files are picked up and deployed. The pattern for resource files can be configured:

```
camunda.autoDeploy.bpmnResources: 'classpath*:**/*.bpmn'
camunda.autoDeploy.dmnResources: 'classpath*:**/*.dmn'
camunda.autoDeploy.formResources: 'classpath*:**/*.form'
```

### Spring Boot OpenAPI + External Task Bundle

Most often you might also want to use the OpenAPI, but also leverage the [Camunda External Task Client as Spring Boot Starter](https://github.com/camunda/camunda-bpm-platform/tree/master/spring-boot-starter/starter-client). To do so you can simply add this convenience library which bundles both:
Expand Down
Expand Up @@ -24,13 +24,13 @@ public class CamundaProcessAutodeployment {
private DeploymentApi deploymentApi;

// TODO Possible extension: Provide a @Deployment annotation like Spring Zeebe
@Value("classpath*:**/*.bpmn")
@Value("${camunda.autoDeploy.bpmnResources:'classpath*:**/*.bpmn'")
private Resource[] bpmnResources;

@Value("classpath*:**/*.dmn")
@Value("${camunda.autoDeploy.dmnResources:'classpath*:**/*.dmn'")
private Resource[] dmnResources;

@Value("classpath*:**/*.form")
@Value("${camunda.autoDeploy.formResources:'classpath*:**/*.form'")
private Resource[] formResources;

@Value("${spring.application.name:spring-app}")
Expand Down

2 comments on commit bc2ec1e

@vijamesDD
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @berndruecker , really love this change thank you for implementing! when might it be published and available to use please? I notice the most recent published version 7.17.0 doesn't have this in it yet and I'd really like to use it.

@berndruecker
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vijamesDD Happy to do a 7.17.1 release now

Please sign in to comment.