org.activiti.spring.SpringTransactionContext#addTransactionListener, TransactionState.ROLLED_BACK registers listener that is also invoked for successful commit

Description

Loooking at the code in SpringTransactionContext#addTransactionListener, this block does not check the status of the executed transaction:

and hence will also be invoked when the transaction is successful.

Unless I'm totally overseeing something here...

Environment

None

Assignee

Frederik Heremans

Reporter

Etienne Studer

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure