rule "room conflict"
when
Lesson($id : id, $timeslot : timeslot , $room : room)
Lesson(id != $id, timeslot == $timeslot , room == $room)
then
scoreHolder.addHardConstraintMatch(kcontext, -1);
end
Asked
Active
Viewed 213 times
-3

Roddy of the Frozen Peas
- 14,380
- 9
- 49
- 99

Samir Aydi
- 17
- 2
-
This question is unrelated to OptaPlanner, as we do not have DMN support. Also, it is barely a question. – Lukáš Petrovický Apr 07 '22 at 12:39
1 Answers
0
You don't.
As Lukáš indicates in the comments, OptaPlanner has no DMN support.
On the other hand, regular open-source Drools does have DMN support, but no built-in concept of constraints.

Roddy of the Frozen Peas
- 14,380
- 9
- 49
- 99