I am trying to create a rule that adds a hard constraint when an employee
gets assigned to a shift for which he does not have the skills.
I have created a table in MySQL that assigns an employee to a certain
shiftType. In my code I stated that once an employee is assigned to a
shiftType, he or she automatically has the skills needed for that shiftType,
hence the skill == $shiftType part in the rule.
$assignment : ShiftAssignment($employee : employee, $shiftType :
not SkillProficiency(employee == $employee, skill == $shiftType)
With the above rule employees still get assigned to shifts they do not have
the skill for. What is wrong with this rule? Thanks.
View this message in context:
Sent from the Drools: User forum mailing list archive at Nabble.com