It's not another planning variable,
instead,
do something like
when
...
then
insertLogical(new CustomerVisitArrivalTime(...));
end
when
CustomerVisitArrivalTime($c : customer, $a : arrival)
not CustomerTimeWindow(customer == $c, $a > start, $a < end)
then
insertLogical(new IntConstraintOccurrence(...))
end
See nurseRosteringScoreRules.drl for an example of use of
insertLogical's like that
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users