[rules-users] Simple aggregation problem
Raja Sekhar
raja.amirapu at gmail.com
Mon Mar 3 06:10:11 EST 2014
Hi,
I am using the following rule
package com.demo;
import com.sample.model.Product;
import com.sample.model.Products;
import java.util.List;
import java.util.Set;
dialect "mvel"
rule "Product_0"
no-loop
when
Product(id: hlId) accumulate (e :Product(hlId == id), $sum1 : sum(e.t1) )
then
insertLogical("hid=" + id +",T1=" + $sum1);
end
I am inserting facts (Product objects) into it and firing the rules.
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.
Regards,
Raja Sekhar
--
Raja Sekhar Amirapu
------------------------------------------------------
"If any anyone can do it, i can do it. If no one else can do it, i must do
it"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140303/a3208c7d/attachment.html
More information about the rules-users
mailing list