Task Listener and Execution Listener Samples / Examples

Hello,

I need to implement a TaskListener on assign event for an User Task and an ExecutionListener on the start event. It will be great if someone can point me to some example / sample which I can refer to implement these.

Also, say, if I want to call a REST API or push an event to a Kafka topic when an user task event (assign or create) occurs, is that possible? Do I need to implement my own TaskListener for that as well or is there any other way?

Thanks in advance.

Regards,
Ben

For task listeners, the org.flowable.engine.delegate.TaskListener interface needs to be implemented. ExecutionListener for the execution listener. You then reference the class in the BPMN model.

Yes, indeed. There’s no out of the box task listener for that.