[rules-users] drools global variable problem
saurabh maheshwari
maheshwari.saurabh03 at gmail.com
Fri Feb 11 02:39:55 EST 2011
Hi ,
I am facing problem in drools global variable.
Setting one global variable using
kSession.setGlobal("timeTo", new Date().getTime());
global java.lang.Long timeTo;
rule myrule
when
$m : Medicine(expiryDate < (timeTo - 60000))
then
retract($m)
end
It is not doing as expected, means retracting all medicines form drools
memory.
Thanks,
Saurabh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110211/444ebcf0/attachment.html
More information about the rules-users
mailing list