Drools is an inference engine and it let you express your knowledge using rules.<div>A rule has 2 parts: CONDITION par and ACTION part.</div><div>The CONDITION part is expressed in a drools&#39; proprietary syntax, but in the ACTION part you can use plain java code.</div>

<div>What you have described looks like an action that needs to be executed when certain constraints are meet.</div><div>So, in your case, you can just write those lines in you action part. They should work fine.</div><div>

<br></div><div>I recommend you to read the documentation: <a href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html</a> </div>

<div><br></div><div>Best Regards,</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>

- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Tue, Apr 19, 2011 at 3:13 AM, Sumeet Karawal <span dir="ltr">&lt;<a href="mailto:sumeet.karawal@tcs.com">sumeet.karawal@tcs.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div id=":xn">for(i = 0; i&lt;10; i++)<br>
{<br>
   c.setCustomerCount(c.getCustomerCount() + 1);<br>
}</div></blockquote></div><br></div>