<br> Yes,<br><br> This is a bug in the DSL engine. May I ask you please to open a JIRA?<br><br> Thank you,<br> Edson<br><br><br><div><span class="gmail_quote">2007/9/11, pentarious <<a href="mailto:cristiano.giuffrida@gmail.com">
cristiano.giuffrida@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi,<br>I'm using the following DSL:<br>
[when]There are at least {N} objects in the domain=Number(intValue>={N})<br>from accumulate ( i : Object(), count( i ) )<br>[when]- category is {Category}=category== "{Category}"<br><br>Using the above DSL from Drools BRMS leads to the following result (rule
<br>source code):<br>Number(intValue>=10) from accumulate ( i : Object(), count( i,<br>category=="CATEGORY") )<br><br>Of course this is not the expected behavior. This should lead to something<br>like:<br>Number(intValue>=10) from accumulate ( i : Object(category=="CATEGORY"),
<br>count( i) )<br><br>I have no such a problem when using the same approach with a collect<br>statement, i.e. the following source code is generated:<br>ArrayList() from collect ( Object(category=="CATEGORY") )
<br><br>Is it a bug?<br><br>Regards,<br><br>CG<br>--<br>View this message in context: <a href="http://www.nabble.com/Using-DSL-and-accumulate-in-Drools-BRMS-leads-to-unexpected-results-tf4421763.html#a12612164">http://www.nabble.com/Using-DSL-and-accumulate-in-Drools-BRMS-leads-to-unexpected-results-tf4421763.html#a12612164
</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli
<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>