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

ConstraintProvider: inject Quarkus/SpringBoot application.properties easily

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: