Bug 1083669 - Timed rules, different name, same timer, same LHS, different RHS, one mask the other
Summary: Timed rules, different name, same timer, same LHS, different RHS, one mask th...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER1
: 6.0.2
Assignee: Mario Fusco
QA Contact: Tomas Schlosser
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-02 16:56 UTC by Mario Fusco
Modified: 2014-08-06 19:54 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:54:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-451 0 Major Resolved Timed rules, different name, same timer, same LHS, different RHS, one mask the other 2014-05-06 12:17:37 UTC

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.


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