Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-2420

Calendars don't work, when we work with two KieContainers

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 6.0.0
    • 6.0.0
    • BRE
    • None

    Description

      Description of problem:
      Calendars don't work, when new KieContainer is created and newKieSession is called right after creation of other KieContainer and calling getKieBase.

      Version-Release number of selected component (if applicable):
      Drools 6.0.0-SNAPSHOT
      6.0.0.ER2

      How reproducible:
      Pull request #251 submited in Drools.

      Steps to Reproduce:
      1. Make drl file with two rules. First rule should fire only on weekdays. Second rule should fire only on weekend days.
      2. Write a test with this order of commands:

      • create first KieContainer and call getKieBase()
      • create second KieContainer
      • from second KieContainer create new session ( newKieSession() )
      • add calendars to session and call fireAllRules()
        3. Run test.

      Actual results:
      Two rules are fired.

      Expected results:
      Only one rule should fired.

      Additional info:

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            tdavid@redhat.com Tomas David
            Archiver:
            rhn-support-ceverson Clark Everson
            Tomas David Tomas David
            Tomas David Tomas David

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty