<div dir="ltr">Hi,<div>I am new to drools<br><div>The following collect statement is working i wanted group by hild</div><div><div>References(id: hlid);</div><div>    $prds : Products(products!=null)</div><div>    $matchingrecords : List() from collect ( Product(hlId==id) from $prds.products )</div>
<div>when the list contains 1,1,2,2 it works when the list contains 1,1,2,1 </div><div>the condition fails.</div><div> I trying to group by hlId</div><div>please help</div><div><br></div><div><br></div>-- <br><div dir="ltr">
Raja Sekhar Amirapu<br>------------------------------------------------------<div>&quot;If any anyone can do it, i can do it. If no one else can do it, i must do it&quot;<br></div></div>
</div></div></div>