This example illustrates the propagation of Camunda events via the Spring event mechanism to a Slack channel using the Slack API Client as documented in the related Camunda BPM documentation and Slack SDK for Java Documentation.
application.properties enabling
- camunda.bpm.eventing properties for task event stream
- slack oauth token and slack channel
Listener implementation invoked when events occur
Slack client implementation invoked when events occur
- SlackClientTest quick plain Java test for your slack client setup
- TestSpringEvents Spring Boot test running a process, creating and publishing task events
Run in your IDE or using:
mvn clean test
You can start the server using your IDE or
mvn spring-boot:run
and step through the process manually. After the server has started you can access the Camunda tasklist via http://localhost:8080/app/tasklist. Use the credentials demo / demo to login.