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

Workbench: Drools Test scenarios screen currently can't do optaplanner constraint rules because scoreHolder is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • Future
    • None
    • optaplanner-wb
    • None
    • NEW
    • NEW

      The scoreHolder variable is initialized by the engine, therefore when a rule is tested using Test scenario feature in the Workbench, a reference is null which leads to NPE.

      Provide scoreHolder mock to avoid the exceptions. Consider restricting this only to users with "planner.available" permission.

            jlocker Jiří Locker
            mcimbora_jira Matej Čimbora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: