Make counter an object
$counter : Counter(value <= 100)
On Mon, Dec 8, 2008 at 5:05 PM, techy <techluver007(a)gmail.com> wrote:
I would like to take 100 sampling facts for rule and persist it in the db
and ignore other data.
How Can I maintain the counter? as global variable? Please clarify with
I tried following way and but it does not work as expected.
global Integer counter;
rule "get sampling data"
when fact : Foo(some condition) && eval(counter <= 100)
// do some condition
View this message in context:
Sent from the drools - user mailing list archive at Nabble.com
rules-users mailing list