Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

282
Vistas
Can the Drools rules configured in Optaplanner implement front-end custom configuration?

At present, I have built a model and wrote the Drools rules in the configuration file. However, due to business characteristics, I need to constantly change the values involved in the Drools rules in the future use process. If you can only change it in the back-end file Convenient, I would like to ask whether it is possible to configure Drools rules on the front-end page and change the values in the rules flexibly?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Short answer: no, not in practice

Because writing constraints is coding (requires unit tests, etc). In practice, it's better to build out an arsenal of constraints and let the users pick the ones they want to use.

Long answer: maybe

There are various levels of adaptability:

  1. Turn on/off constraints. Take a look at @ConstraintConfiguration etc in the docs. This works for ConstraintStreams and scoreDRL too. Constraints with ZERO weight have zero performance impact (for ConstraintStreams at least - not sure for score DRL any more).

  2. Use configuring records, like a class EmployeeAvailability, that sets unavailability between a start and end datetime for one employee. This gives users the ability to block wednesday afternoons for Ann, saturday mornings for Beth and halloween evening for Carl.

  3. Build a UI around ConstraintStreams and have end-users write their own constraints, just like in Excel. Only problem is that writing constraints is a very formal process that requires unit tests to be done correctly. The OptaPlanner team has been doing research around this, but it's far from trivial.

Business Central KIE Workbench has a Guided Rule Editor to compose scoreDRL by end-users. So in theory, it does 3). In practice, no users can use it.

For 3), you'll need a lot of funding. In practice, combining 1) and 2) does wonders to build out an arsenal of flexible constraints, so the users pick and chose the ones they need/Want.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda