CacheControl / CacheControl/json-rules-engine

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

オープン
#424 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
3.1k
フォーク
507
PR マージ指標
30日以内にマージされた PR はありません

説明

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",
},
}
};
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。