Description of problem: Human task deadlines are not cancelled when task is finished in any way: - complete - skip - fail - exit This causes a notification to be send out even after the task has been completed. Version-Release number of selected component (if applicable): 5.3.0.GA How reproducible: Always Steps to Reproduce: (abbreviated steps, see test for full procedure) 1. Register a notification handler 2. Create a task with a deadline 3. Complete the task with the deadline 4. Retrieve the task information (or other task server operation involving the task) 5. There should be no more notifications. See this test, and all tests under it: https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/test/java/org/jbpm/task/service/base/async/TaskServiceDeadlinesBaseAsyncTest.java#L208 Actual results: Notifications (such as e-mails) are sent even after the task has been completed, skipped or failed. Expected results: Notifications should stop as soon as the task has been completed/skipped or failed. Additional info:
This fix (2 commits) was committed today to the community 5.2.x branch: 525e264 2012-07-31 | BZ-843469 JBPM-3661 HT Deadlines are not cancelled on task completion - removed deadlines from db on completion and added async tests (modified cherry pick from commit 2b03575ca52ca79a6b54682a3140f4ac5cf1ac8b) (HEAD, upstream/5.2.x, 5.2.x) [Maciej Swiderski] d92cd8b 2012-07-31 | BZ-843469 JBPM-3661 HT Deadlines are not cancelled on task completion (modified cherry pick from commit 5181ddf84ddf718727f3a55f7715b8416bfe4baf) [Maciej Swiderski]
The fix has landed in bug 843917 roll-up patch.