OptaPlanner + Drools - how to create specific rule -
i'm working on kind of "employee rostering" application. i'm using optaplanner , ability work drools.
i have 3 classes: employee
, shift
, shiftassignment
.
shift
class has property called length means how many hours shift
lasts.
as can figure out, shiftassignment
@planningentity
class has properties of employee
, shift
types. shiftassignment
class has method returns shift
lenght.
employee
@planningvariable
.
i have rule checks if every single employee
has worked @ least 160 hours in total. problem have no idea how implement such rule in drools. can please me , provide me such rule? grateful.
Comments
Post a Comment