CacheControl / CacheControl/json-rules-engine

fact params is not working when I am using fact in evaluationDetails > currentValue

Abierto
#424 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
3.1k
Forks
507
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I am using these params to create a rule. When rule is failing I want it to return currentValue by resolving fact **documentsCount** . Although It is resolving this fact **documentsCount** but not with the params which I passed. The params receiving params in fact fact resolver is {}.

```
{
baseNumber: 1,
evaluationDetails: {
code: "RuleEventErrorCode",
currentValue: {
fact: "documentsCount",
params: {
status: "approved",
hasPayments: true,

},
},
message: 'The documents number does not meet the requirements',
targetValue: {
fact: "stdDocCount",
},
}
};
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.