Hi All,
I need to write a set of rules that each get executed only ONCE. However, the conditions
are met at different stage of execution as events are coming thru a stream. Therefore I
need to disable each rule at different stages.
I was looking for some mechanism to disable a rule after it gets executed. Something like
this.
rule "myExecuteOnlyOnceRule"
when
//some condition tat evaluate events
then
this.rule.disable() / disable(drools.getRule())
end
Let me know if you know such a function or a workaround for this issue.
Cheers,
Malinda