Camunda events CDI - can saveTask be intercepted?

Hi guys,

We are trying to use Camunda events CDI and it looks really promising. We want to use it in order to send process instance variables to ElasticSearch and get them indexed.

At some points in the process we need to perform a saveTask on certain user tasks.
Can this action be handled somehow from camunda cdi events? We are succesfully handling complete events, start events, etc…

Thanks in advance,
Alfonso.

Have you also seen and considered this?
https://docs.camunda.org/manual/latest/user-guide/process-engine/history/

Hi rob2universe,

No, I didn’t… I’ll have a look…
You mean that I could implement a Custom History Level and “intercept” the save method (update task) operation inside the method

Blockquote
public boolean isHistoryEventProduced(HistoryEventType historyEventType, Object entity)

Right?
Thanks Rob :wink: