Task deletion event during process instance deletion

HI,

we have global task and execution listener added to the process engine as part of plugin to capture events. I am assuming deleting process instance( calling /process-instance/delete) would internally delete task and hence should have fired task listener on delete event but I dint see task delete being invoked when /process-instance/delete is triggered.
is camunda internally deleting task/process and all data associated in single query during process instance deletion and not triggering any listeners.

However when process is terminated explicitly through error boundary event on user task the task delete listener was invoked.

same issue here. We are using 7.18. Did you find answer? thanks

Hi @emailtowalter and @harish_malavade,

according to the documentation here: Delegation Code | docs.camunda.org, deleting a process instance calls the tasklistener delete event of the active task.

Is the user task you’re expecting to fire still active, or is it completed when the process instance gets deleted?

Hope this helps, Ingo

1 Like

I dont remember exactly what we did, but we started using async delete Delete Async (POST) | docs.camunda.org and that happened to have worked and emitting the task instance delete event in the task listener as expected