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

ConstraintProvider: inject Quarkus/SpringBoot application.properties easily

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • Undefined
    • NEW
    • NEW

      Presume we have a ConstraintProvider like this:

      long maxDistance = 50_000; // 50 km
      
      public Constraint maxDistance() \{
         return from(PersonAssignment.class)
         .filter(personAssisgnment.getDistanceToVaccionationCenter() > maxDistance)
         .penalize(...)
      }
      

      That 50_000 should be configurable from application.properties easily.

              Unassigned Unassigned
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: