AnsweredAssumed Answered

exception handling anti-pattern in AtomicOperationProcessEnd

Question asked by tyrcho on Nov 20, 2015
Hi,

I've faced this issue : when several subprocesses are nested and an exception is thrown, it is logged at each subprocess level. This means a huge stack trace logged several times. (https://github.com/Activiti/Activiti/issues/739)

This is the responsible line :
https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/pvm/runtime/AtomicOperationProcessEnd.java#L53


I propose this PR to fix the issue : do not log the same exception twice (https://github.com/Activiti/Activiti/pull/740)

There might be other instances of this anti pattern elsewhere though.

Cheers,
Michel

Outcomes