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