<br>&nbsp;&nbsp; Yes,<br><br>&nbsp;&nbsp; This is a bug in the DSL engine. May I ask you please to open a JIRA?<br><br>&nbsp;&nbsp; Thank you,<br>&nbsp;&nbsp;&nbsp;&nbsp; Edson<br><br><br><div><span class="gmail_quote">2007/9/11, pentarious &lt;<a href="mailto:cristiano.giuffrida@gmail.com">
cristiano.giuffrida@gmail.com</a>&gt;:</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&#39;m using the following DSL:<br>
[when]There are at least {N} objects in the domain=Number(intValue&gt;={N})<br>from accumulate ( i : Object(), count( i ) )<br>[when]- category is {Category}=category== &quot;{Category}&quot;<br><br>Using the above DSL from Drools BRMS leads to the following result (rule
<br>source code):<br>Number(intValue&gt;=10) from accumulate ( i : Object(), count( i,<br>category==&quot;CATEGORY&quot;) )<br><br>Of course this is not the expected behavior. This should lead to something<br>like:<br>Number(intValue&gt;=10) from accumulate ( i : Object(category==&quot;CATEGORY&quot;),
<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==&quot;CATEGORY&quot;) )
<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>&nbsp;&nbsp;Edson Tirelli
<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>