jruizgit / rules

Durable Rules Engine
MIT License
1.14k stars 209 forks source link

What does the function 'retract_fact' mean? Why is it often used with 'none(+m.x)', Is it specially used to trigger 'none(+m.x)'? #368

Closed YXWisaboy closed 2 years ago

YXWisaboy commented 3 years ago

Because I didn't see the relevant content in the document, I'd like to ask. I'm using the python version. Look forward to hearing from you.

sureshvv commented 3 years ago

retract_fact is like removing the fact from future consideration. Remember all facts stick around indefinitely.

none(...) means no event matching condition So when a fact is retracted, the none(...) condition can succeed.

.Where did you see it used with none(+m.x)?