Hello,
While playing with sessions, I saw that due to my poor rule design, a lot of facts remains in the session memory.
So I wonder how to design a cleaning rule that may retract any fact after having passed thru the other rules (if makes sense).
The only method I found if to define a cleaning rule with the lowest salience and an "always true" rule but looks crappy...
rule RemoveUseless {
salience: 1;
when {
m : Measurement m.measurementId > 0;
}
then {
retract(m);
}
}
Any good practice ?
Thanks !
matt