Task Listeners in Camunda 8

Hi @Niall
Immediate action after Assigning a case to the user(Ex: notifying the user through the mail)
how can we achieve this in Camunda 8.2?

can you please give me clarity? @marcosgvieira @Ingo_Richtsmeier @StephanHaarmann

Hi @basheer-babu,

Which setup are you using? Are you using Camunda 8 SaaS or Self-Managed?
If you’re using Self-Managed, you can write an Exporter that triggers the E-Mail notification.

Hi @StephanHaarmann ,
Thanks for the reply.
I’m using Camunda 8.2 Self-Managed. I want to call Java after assigning Task to the user.

In this case, I would try to achieve this behavior with an Exporter (since it receives all events).
Can you elaborate on your use-case? What’s the purpose of the task-listener?

Hi @StephanHaarmann ,
I want to call Java after assigning Task to the user to store the activity in Database. so that I can track the case.
A task listener is used to execute custom Java logic.
How to achieve this behavior with an Exporter? can you share any References or GitHub links?

Hi,
an exporter receives all events emitted by Zeebe. Among these events are changes to tasks (i.e., a task was claimed by a certain user). The exporter itself is written in Java, so you can place your logic there:
For each “Claim Task” event export the event data to your DB
There are examples for exporters on Github. However, they are more generic than your approach. Have a look at the exporters in the community hub.