Description of problem: In TaskServiceSession.taskOperation(), Process notification is done after transaction commit. Because of this, task operation (completing a task) and process execution (triggered by task completion) are executed in different transactions. So there would be a case where process execution is rolled back but task completion is not rolled back. Steps to Reproduce: 1. Run ProcessMainJPA.java in jBPMEx67_exception_after_task_completion.zip This example process throws an RuntimeException in a Script Node after a User Task Node. Actual results: Task is completed. Expected results: Task is rolled back. (= InProgress)
Fixed in master. https://github.com/droolsjbpm/jbpm/commit/63afb97f395c165b2bc0ce24b2c8d4f447f3a41f
Created attachment 794094 [details] jBPMEx67_exception_after_task_completion.zip
Verified in 5.3.1.BRMS-P05.