[jboss-jira] [JBoss JIRA] (DROOLS-451) Timed rules, different name, same timer, same LHS, different RHS, one mask the other

Matteo Mortari (JIRA) issues at jboss.org
Tue Mar 11 13:59:10 EDT 2014


Matteo Mortari created DROOLS-451:
-------------------------------------

             Summary: Timed rules, different name, same timer, same LHS, different RHS, one mask the other
                 Key: DROOLS-451
                 URL: https://issues.jboss.org/browse/DROOLS-451
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 6.0.1.Final
            Reporter: Matteo Mortari
            Assignee: Mark Proctor
         Attachments: 2014-03-11_18-52-25.png, 20140311.drools6test.timerrulessamelhs.zip

Consider the following KB:
{code}
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
{code}

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.

I hope this is not another duplicate report, I've done search on Jira before submitting, but kindly excuse me if I didn't found an already open bug which is a greater case of this one =)

I will attach relevant source code to replicate the issue, and related material

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list