Description of problem:
In case knowledge session is reset (for instance due to transaction rollback) main agenda group is duplicated. First time is added by clear method in DefaultAgenda and then right after by the marshaller
Consequence of it is that rules are not fired after session reset.
This is a backport of jira JBRULES-3677
Version-Release number of selected component (if applicable):
See bz https://bugzilla.redhat.com/show_bug.cgi?id=862296 for all steps that needs to be taken to reproduce it. That bz was about transactions but revealed problem with handling rule tasks in the processes
Steps to Reproduce:
Mario Fusco <mario.fusco> updated the status of jira JBRULES-3677 to Resolved
Fix available and ready to be backported.
could you review this bug to see if it should be included in the release notes, and provide the content if it should.
(This is the last one)
Verified on 5.3.1.BRMS-ER4.