We have some issues adding cross-cutting concerns to our process applications, for example collecting metrics before and after each Service Task or adding some logging identifiers to the MDC context of the executing thread.
We tried to write a ProcessEnginePlugin which adds a CustomBPMNParseListener that adds ExecutionListeners. This works for simple cases an execution order is:
Have you looked at overriding the execute() method in your ProcessApplication? That can be used to intercept any asynchronous actions from Camunda. We use it to add information to the MDC context as well.
Currently we use the Spring Boot Auto Deployment for our Processes, so we do not have any ProcessApplication where we could override execute(). Seems like no ProcessApplication is created at all?
Hi @criew, Am trying to implement the same functionality in my application which is also a spring boot project. But for some reason no process tasks would intercept when I publish some sample data. Can you post your code snippet, how you made it work?
@abhilashk6303 I’d suggest starting a new thread with an example of what you’re trying to do and what’s not working. It’s really challenging to provide assistance without data specific to your issue.