Is it possible to define a particular day particular hours (example, 5 and 6) are no classes? in opta course curricula planner.
Tried the following approach, doesn't work.
rule "saturdayHalfDay"
when
Lecture( period!=null, $day:period.getDay(),
$day!=null,$time:period.getTimeslot(),
$time!=null,
$day.getDayIndex()==5,
($time.getTimeslotIndex()==5 || $time.getTimeslotIndex()==4)
)
then
System.out.println(" $day " + $day + " $time " + $time);
scoreHolder.addHardConstraintMatch(kcontext, -1);
end
//assume that $day.getDayIndex()==5 (5 is saturday)