Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-533

Optaplanner should find defaultKieSession even if it not defined in kmodule.xml

XMLWordPrintable

    • NEW
    • NEW

      The following kmodule.xml and solver.xml combination is broken
      When no ksession is defined in kmodule.xml and no ksessionName is set in solver.xml optaplanner should find the ksession called "defaultKieSession".

      <?xml version="1.0" encoding="UTF-8"?>
      <kmodule xmlns="http://www.drools.org/xsd/kmodule">
      </kmodule>

      <?xml version="1.0" encoding="UTF-8"?>
      <!-- This file is copy pasted to another package in the KieContainer test to avoid false positive tests -->
      <solver>
      <scanAnnotatedClasses>
      <packageInclude>testdata.kjar</packageInclude>
      </scanAnnotatedClasses>

      <!-- Score configuration -->
      <scoreDirectorFactory>
      <scoreDefinitionType>SIMPLE</scoreDefinitionType>
      </scoreDirectorFactory>
      </solver>

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            trikkola Toni Rikkola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: