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

Rule match callbacks not called anymore after switching DRL to executable model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 7.44.0.Final
    • executable model
    • None
    • 2020 Week 43-45 (from Okt 19)
    • Undefined
    • NEW
    • NEW
    • ---
    • ---

    Description

      After we switched OptaPlanner to use executable model for DRL, we started seeing some weird behavior. We reproduce it in the following test:

      https://github.com/triceo/optaplanner/blob/incremental-bug/optaplanner-examples/src/test/java/org/optaplanner/examples/travelingtournament/app/DroolsReproducerTest.java

       

      It would be too hard to extract the test from OptaPlanner entirely, but we have managed to minimize it to insert/update operations. The actual Drools code starts here:

      https://github.com/triceo/optaplanner/blob/incremental-bug/optaplanner-examples/src/test/java/org/optaplanner/examples/travelingtournament/app/DroolsReproducerTest.java#L118

       

      The bug, then, happens here:

      https://github.com/triceo/optaplanner/blob/incremental-bug/optaplanner-examples/src/test/java/org/optaplanner/examples/travelingtournament/app/DroolsReproducerTest.java#L143

       

      The DRL we use is here:

      https://github.com/triceo/optaplanner/blob/incremental-bug/optaplanner-examples/src/test/resources/org/optaplanner/examples/travelingtournament/solver/reproducer.drl

       

      Please read the code comments that will explain the key points.

      Do note that this must be some corner case, as most of OptaPlanner Examples continue to work with exec model enabled.
      Should more information be needed, please contact jlocker in my absence.

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: