Bug 1038076

Summary: Rule should not be fired again after unblock, if it is fired before block
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas David <tdavid>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas David <tdavid>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: etirelli, mfusco, mwinkler, rzhang
Target Milestone: ER 7   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:18:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Reproducer test none

Description Tomas David 2013-12-04 11:20:59 UTC
Created attachment 832581 [details]
Reproducer test

Description of problem:
The rule is fired before block (context.blockMatch()) and after unblock is fired again, but the rule should be fired only once.

Version-Release number of selected component (if applicable):
Drools 6.0.0-SNAPSHOT
Drools 6.0.0.ER5

How reproducible:
Attachment test.

Steps to Reproduce:
1. Make a drl file with three rules. First rule has the highest salience and it set focus on specific agenda group. Second rule is in the agenda group and it has metadata @department('sales'). The last rule block rules with (department == sales).
2. Make a test where all LHS conditions of rules are met.
3. Run test.

Actual results:
Rule is fired again.

Expected results:
Rule is not fired again.

Additional info:

Comment 2 Mario Fusco 2013-12-06 17:58:37 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/40377dafd

Comment 3 Tomas David 2014-01-10 09:53:22 UTC
Verified on BRMS 6.0.0.ER7.

Comment 4 JBoss JIRA Server 2014-02-12 08:50:53 UTC
Mario Fusco <mario.fusco> updated the status of jira DROOLS-378 to Resolved