Hello,
It seems that is not possible to make rules with operators like "collect"
that affects the rule to a set of objects.
It is possible to simulate that behaviour of collect in some form?
I need to fire rules that have conditions over a set of objects (of same
type) but i don't know how to group conditions over multiple same objects.
For example :
rule CarsStopped
when
$c:Car (stop = true) // here i need a collect, i want multiple objects
in one rule that
then
print("The list of cars stoped is:$c);
end
It seems that "collect" doesnt exist. It is possible to simulate that ?
Actually i ame using JRules and want to use drools too, but i am having
dificulties to do what i can do with JRules.
Thank you very much for your responses.