Skip to content

How to query for list of facts in the session? #52

@devijvers

Description

@devijvers

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions