<div dir="ltr">Hi,<div>I am using the following rule</div><div><div>package com.demo;</div><div>import com.sample.model.Product;</div><div>import com.sample.model.Products;</div><div>import java.util.List;</div><div>import java.util.Set;</div>
<div>dialect &quot;mvel&quot;</div><div><br></div><div>rule &quot;Product_0&quot;</div><div>no-loop</div><div>when</div><div><span class="" style="white-space:pre">        </span>Product(id: hlId) <span class="" style="white-space:pre">        </span>accumulate (e :Product(hlId == id), <span class="" style="white-space:pre">        </span>$sum1 : sum(e.t1) ) </div>
<div>then</div><div> insertLogical(&quot;hid=&quot; + id +&quot;,T1=&quot; + $sum1);</div><div>end</div><div><br></div><div>I am inserting facts (Product objects) into it and firing the rules.</div><div>When i took performance stats from visual vm with JMX. got a time of 3832ms. I can you suggest if i am doing any thing wrong with this.</div>
<div><br></div><div>Regards,</div><div>Raja Sekhar </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>