Audit logs for the workflows

I am looking for a way to enable audit logging for every action taken in a workflow. I looked into enabling the database event logging, but that did not give me as much control as I would like. My next idea is to try to enable this using flowable-cdi.
My hope is that with this I can trigger a function to get called at the start and end of each step in a workflow. Is the CDI a good way to handle this? If so how would I go about registering a bean that gets called for each of these events?

Hi Jesenorama,

My preferred implementation would be based on

or on task listeners added automatically during process parsing.


Using Event Handlers looks like it will work very well. Thank you!