JBoss Community

JPA History Log

created by Cristiano Nicolai in jBPM - View the full discussion

Hi all,

 

 

I notice that the JPAWorkingMemoryDbLogger class currently uses the command scoped entity manager to persist its data. Which is shared with the engine to perform its work (Command scope), causing to loose this data in case of a rollback. I'm just thinking that it might be useful if it runs on a separate transaction/entity manager, to keep track about everything that happened. For example, if a WorkItemHandler throws an exception, we still know that the respective node was triggered.

 

Do you guys see any drawback on doing it?

Reply to this message by going to Community

Start a new discussion in jBPM at Community