Hi!
I need to perform operations after executing CRUD operations, in my case send kafka messages for some entities (e.g Task) after database commits
Is there a way?
Thanks in advance, best regards
Hi!
I need to perform operations after executing CRUD operations, in my case send kafka messages for some entities (e.g Task) after database commits
Is there a way?
Thanks in advance, best regards
There are various ways:
Edit: Note that both approaches do not inform you of every created entity (i.e. row in the Camunda database schema), but of the major business objects camunda creates, deletes, etc.
Thanks for reply @thorben!
I agree for the history way
I think I found a solution extending DefaultHistoryEventProducer performing each logical operations needed overriding the create event methods (e.g createTaskInstanceCreateEvt, createTaskInstanceCompleteEvt etc…)
Listener way is bound to bpmn parsing and sometimes preceding database operations
Thanks a lot, best regards