Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1083669

Summary: Timed rules, different name, same timer, same LHS, different RHS, one mask the other
Product: [Retired] JBoss BRMS Platform 6 Reporter: Mario Fusco <mfusco>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Schlosser <tschloss>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: kverlaen
Target Milestone: ER1   
Target Release: 6.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:54:31 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:

Description Mario Fusco 2014-04-02 16:56:36 UTC
Consider the following KB:

rule "Dummy timer rule 1"
timer (cron: 0 0 0 * * ?)
when
	Integer()
then
	insert("Dummy timer rule 1");
	System.out.println("Dummy timer rule 1");
end

rule "Dummy timer rule 2"
timer (cron: 0 0 0 * * ?)
when
	Integer()
then
	insert("Dummy timer rule 2");
	System.out.println("Dummy timer rule 2");
end

Then consider the following steps:

    insert new Integer
    advance clock by +1 day

Expected result: 3 facts in the working memory, the original Integer, and two String.

Actual results: 2 facts in the working memory, the original Integer, and only 1 String, from the former of the two rules.

Comment 1 Mario Fusco 2014-04-02 16:59:34 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/da8a5df1d

Comment 2 JBoss JIRA Server 2014-04-02 16:59:50 UTC
Mario Fusco <mario.fusco> updated the status of jira DROOLS-451 to Coding In Progress

Comment 3 JBoss JIRA Server 2014-04-02 17:00:08 UTC
Mario Fusco <mario.fusco> updated the status of jira DROOLS-451 to Resolved

Comment 5 Mario Fusco 2014-04-04 09:47:21 UTC
Cherry-picked to 6.0.x branch with https://github.com/droolsjbpm/drools/commit/4ca92da45

Comment 6 Tomas Schlosser 2014-05-06 12:17:31 UTC
Verified in BRMS 6.0.2 ER2.