I have a rule that polls an external system at a fixed interval. This call returns a JSON array with objects that are converted to facts.
I want to assert some of these facts (these are new), I want to modify certain other facts (these are existing facts) and I want to retract other facts.
However, I can't seem to add the existing facts to the when { } clause, at least I think I can't. My facts use the Thing type. Is it possible to get an array of all Thing facts from the when { } clause?