Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find unused facts #306

Open
inevolin opened this issue Aug 2, 2022 · 0 comments
Open

Find unused facts #306

inevolin opened this issue Aug 2, 2022 · 0 comments

Comments

@inevolin
Copy link

inevolin commented Aug 2, 2022

Is it possible to retrieve a list of facts which were not used / triggered by any rule in the engine?

Pseudo code:

facts = {
  A: true,
  B: false,
  C: true,
  D: false
}

rule = {
  check if A == true ?
}

engine(rule).run(facts)

I want to retrieve facts which were not used by this rule (B, C, D)

This is an atypical request I guess. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant