CacheControl / CacheControl/json-rules-engine

Find unused facts

Aperta
#306 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
3.1k
Fork
507
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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. :)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.