Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-451

Timed rules, different name, same timer, same LHS, different RHS, one mask the other

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.1.0.Beta3
    • 6.0.1.Final
    • None
    • None

      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:

      1. insert new Integer
      2. 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

            mfusco@redhat.com Mario Fusco
            mmortari@redhat.com Matteo Mortari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: