I finally suceeded to get what I wanted using the keyword accumulate
which is really very poweful as said in the doc. Here is the rule:
http://drools.pastebin.com/m4f938e40

It is a little bit complex, but it perfectly works. The only
observation I have is that it seems drools compatible jdk is < 1.5,
since I tryed to declare my linkedlist this way: LinkedList<Alarm>(),
but got warnings about the unexpected '<'. One other thing, the
"implicit and" does not work in the accumulate, you have to put it
clearly.

Now I have something giving me the list I need, all should be easy I
think. Do you have any observation on the way I did it?

Cheers

Aldian
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
http://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to