Are there hooks to catch move to Deadletter Job Queue

Hi,

I have a BPMN process flow, and I would like to execute some code when a (message) execution of a failing HTTP Task is moved to the Deadletter Job Queue (after failing the configured 5 retries). I want to update some fields in my database, but I still want the message to go to the Deadletter Job Queue afterwards.
Is this possible? And if so, how can I do this?

Bart

Maybe having a implementation of FlowableEventListener. Engine Event Handler