https://github.com/vrnsky/camunda-messaging-starter
Camunda (TM) messaging starter for Spring Boot
https://github.com/vrnsky/camunda-messaging-starter
camunda kotlin spring spring-boot
Last synced: 4 months ago
JSON representation
Camunda (TM) messaging starter for Spring Boot
- Host: GitHub
- URL: https://github.com/vrnsky/camunda-messaging-starter
- Owner: vrnsky
- Created: 2023-01-28T08:36:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T17:01:02.000Z (about 1 year ago)
- Last Synced: 2025-04-08T18:21:48.312Z (about 1 year ago)
- Topics: camunda, kotlin, spring, spring-boot
- Language: Kotlin
- Homepage:
- Size: 153 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
[](https://github.com/vrnsky/camunda-messaging-starter/actions/workflows/package.yml)
[](#)
[](#)
[](#)
[](#)
### ✉ Camunda Message Starter
Send a message to Camunda; it is a trivial task, but it brings a lot of boilerplate code.
By using this project you can save time.
### 〈〉Usage
```
io.vrnsky
camunda-messaging-starter
0.0.1-SNAPSHOT
```
#### 🎉 Creation
Template is created automatically. You don't need to create a bean.
But you can override the default template as below.
```java
import io.vrnsky.camunda.messaging.starter.CamundaMessageConfiguration;
import io.vrnsky.camunda.messaging.starter.CamundaMessageTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class MessageConfiguration {
@Bean
public CamundaMessageTemplate camundaMessageTemplate() {
var camundaMessageConfiguration = new CamundaMessageConfiguration("http://localhost:8080");
return new CamundaMessageTemplate(camundaMessageConfiguration);
}
}
```
```java
import io.vrnsky.camunda.messaging.starter.CamundaMessageTemplate;
import io.vrnsky.camunda.messaging.starter.model.CamundaMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class CamundaController {
@Autowired
private CamundaMessageTemplate camundaMessageTemplate;
@PostMapping("/message")
public void message(@RequestBody CamundaMessage camundaMessage) {
camundaMessageTemplate.message(camundaMessage);
}
}
```
#### Process definition example

#### Successfully launch
```bash
CamundaMessageTemplate : baseUrl obtained from configs = http://localhost:8080
```
### ⨑ CI/CD
This project uses GitHub Actions for CI and CD; the [designated directory](./.github/workflows) contains all workflows.
### ✆ Contacts
[](https://vrnsky.medium.com)
[](https://vrnsky.substack.com)
[](https://vrnsky.github.io)
[](https://me.dm/@vrnsky)