CacheControl / CacheControl/json-rules-engine
Possible to use a rule as a fact in another rule?
- Lenguaje dominante
- JavaScript
- Estrellas
- 3.1k
- Forks
- 507
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
We're working on better decomposing our facts and rules, and have found that (due to our data model hierarchy), we're having to re-stipulate the same facts in multiple rules. Is it possible to use a rule as a fact in another rule so we can avoid having to copy/paste fact statements into multiple rules which is tedious and error prone?
For example, if Rule 1 states that _FieldA must be true_, and Rule 2 states that _Field A must be true and Field B must be false_, is it possible to construct Rule 2 such that _Rule 1 must be true and Field B must be false_?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
El issue no menciona archivos, pruebas ni puntos de entrada. Empieza localizando las rutas de evaluación de reglas y hechos, y luego aclara cómo debería evaluarse una regla referenciada como hecho; se considera terminado cuando Rule 2 puede reutilizar Rule 1 sin duplicar Field A y el comportamiento existente sigue estando cubierto.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- backend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 28/100