Red Hat Bugzilla – Bug 833435
TasksAdminImpl commits trnx even if it's not owner
Last modified: 2017-12-07 18:33:56 EST
in regards to org.jbpm.task.admin.TasksAdminImpl.archiveTasks() .... seems that line 86 should set:
boolean txOwner = tpm.beginTransaction();
and then in line 95:
otherwise, with the current code, the JTA trnx is always commited at this point even if this piece of code did not start the trnx
same goes for, TasksAdminImpl.removeTasks()
I saw this as well, but thought that maybe Mauricio had a specific reason for writing it this way, given that all other code is written the way Jeffrey mentions.
Assigning to Mauricio so he can explain.
Jeff you are correct. I will fix that in master. Thanks for pointing that out. After writing the TaskEventsAdmin class which is similar, I've added a TODO to fix that, so I will do that today.
It's already fixed in master
Fixed in 5.2.x
Verified on 5.3.1.BRMS-ER1
Employee 'email@example.com' has left the company.