Camunda task events notifier
Hello today i m gonna present you a project which help to notify your application when a task event is triggred.
How does it work:
We have a backend spring application which contain a dependancy named camunda bpm reactor
<dependency>
<groupId>org.camunda.bpm.extension.reactor</groupId>
<artifactId>camunda-bpm-reactor-spring-starter</artifactId>
<version>2.1.2</version>
</dependency>This dependancy will detect the time when a :
- service task
- script task
- user task
- a process
will start or complete.
then when detecting the event we will use a websocket to send a notification to an angular application, to show the event
The project structure:

Thoses classes will contains listener which will detect when a task start or end.
an example of implementation:

Here a class which listen to a task with type : usertask
the event to detect is : an End event
we use template.convertAndSent() to send the notification message to topic
and in frontend side we will listener to the topic to read messages.
Github repo:
- front end side : https://github.com/ghailen/camunda-Notification/tree/master/src
- backend side: https://github.com/ghailen/camunda-notification-with-camunda-bpm-reactor-websocket/tree/master
Demo:
Diagram:

in the process we will complete the task CheckWeather :

in the angular application we can see a new notification:

that said that process is finished and the task Weather OK also is finished
and using the notification icon, we can see the historic of the executed task and process:

Thank you for reading my article, please contact for any further information.
Other Camunda topics:
camunda task events notifier camunda genericuser task listener in camunda task marker multi-instance taskmarker loop in camunda feel language camunda how to work with dmn how to work with dmn how-to-use-embedded-task-form-in-camunda all-about-camunda-database error-handling-in-camunda sub-process-in-camunda gateways-in-camunda camunda-with-spring-boot-example task-in-camunda events-in-camunda






