I'd like some advice on how to make my model.
I need to plan employee schedule for a month, I have some constraint that
will change dynamically by employee. Constraint are
1. NO_SUNDAY_NIGHT_SHIFT
2. NO_EVENING_SHIFT
3. ONLY_NIGHT_SHIFT
I create domain classes just like nurse roistering and try to apply rule. My
domain classes is
ShiftAssignement --------------------------planningEntity class
Employee-------------------------------------planningEntity variable
Preference-----------------------------------Employee gives his shift
preference (just like contract in nurse rostering )
BlackDays-----------------------------------Employee define his black day in
preference(just like WeekEnd)
ShiftLine-------------------------------------It is List of shiftline in
preference (ShiftLineType is enum variable in which we define constraint
NO_SUNDAY_NIGHT_SHIFT (its hard coded for test))
Shift------------------------------------------Just like nurse restring
ShiftDate----------------------------------- Just like nurse restring
ShiftType----------------------------------- Just like nurse restring
I am unable to map constraint(NO_SUNDAY_NIGHT_SHIFT) for one month
scheduling of employee
Is above domain is correct? then how to write rule and other stuff………
--
View this message in context:
http://drools.46999.n3.nabble.com/how-to-use-constraint-dynamically-in-ru...
Sent from the Drools: Developer (committer) mailing list mailing list archive at
Nabble.com.