New events for TaskListener

Hi,
are there plans to support more events for TaskListener in the next Camunda release? We are dealing with issue described here Global task listener gets called before task is persistent and we went with the TransactionListener approach, but a ‘beforeCreate’ and ‘afterCreate’ events would be great (instead of the create event). Same way before and after start or end events would be helpful and so on.

Or is there some other approach we can use to notify another application that a task has been created and be able to retrieve the task details right after this notification is received? Implementing delays is a dirty workaround.

Best regards,
Paul Palacean

Hi @ppalacean,

currently, we have no plans to support other events.

Usually, you would use a TransactionListener to get notified when the transaction is committed.

Does the TransactionListener work for your use case?
If not, what is missing?

Best regards,
Philipp

Hi @Philipp_Ossler,
yes the TranactionListener works fine for us, but I read it’s internal code and subject to change in the future. That is why I was wondering if there is a better solution or plans to extend the existing events in the future.

Thanks,
Paul Palacean

Don’t worry. We have no plans to change the TransactionListener.
Alternatively, you can bind your listener at the transaction manager of the engine.

1 Like

Got it, thanks.