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

ConstraintCollectors that return Collection are broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 8.2.0.Final
    • None
    • optaplanner-core
    • None

      See https://stackoverflow.com/questions/65757640/has-optaplanners-tolist-constraintcollector-a-bug

      The issue is in the underlying Drools executable model. `createVariable(..., from(accumulateResult))` works well when `accumulateResult` is a single thing. If it's a collection, it starts giving results one by one, and not the list as a whole.

      Pretty sure this is a regression, it worked in the past.

              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: