[rules-users] collect
Wolfgang Laun
wolfgang.laun at gmail.com
Tue Feb 18 08:18:28 EST 2014
On 18/02/2014, Raja Sekhar <raja.amirapu at gmail.com> wrote:
> Hi,
> I am new to drools
> The following collect statement is working i wanted group by hild
> References(id: hlid);
> $prds : Products(products!=null)
> $matchingrecords : List() from collect ( Product(hlId==id) from
> $prds.products )
> when the list contains 1,1,2,2 it works when the list contains 1,1,2,1
> the condition fails.
What do you mean by "fails"? The rule should fire in any case.
This is not enough code for a check: Java code inserting the facts,
Java code defining the facts, complete text of the rule is required,
and Drools version.
-W
> I trying to group by hlId
> please help
>
>
> --
> Raja Sekhar Amirapu
> ------------------------------------------------------
> "If any anyone can do it, i can do it. If no one else can do it, i must do
> it"
>
More information about the rules-users
mailing list