Bug 1038076 - Rule should not be fired again after unblock, if it is fired before block
Summary: Rule should not be fired again after unblock, if it is fired before block
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER 7
: 6.0.0
Assignee: Mario Fusco
QA Contact: Tomas David
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-04 11:20 UTC by Tomas David
Modified: 2014-08-06 20:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:18:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Reproducer test (1.34 KB, application/zip)
2013-12-04 11:20 UTC, Tomas David
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-378 0 Major Resolved Do not refire rules on unblock 2014-03-25 12:42:34 UTC

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


Note You need to log in before you can comment on or make changes to this bug.