Ok, so on the first rule should fire for all occurrences of a Customer
since each Customer should have at least one visit?
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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Btw, thanks for your help and thanks for a great product!
Regards,
Mats