CacheControl / CacheControl/json-rules-engine
fact params is not working when I am using fact in evaluationDetails > currentValue
- 主要語言
- 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",
},
}
};
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
從 evaluationDetails.currentValue 的處理開始,追蹤它如何呼叫 documentsCount fact resolver。使用 status 和 hasPayments 參數重現提供的規則,然後驗證 resolver 是否收到這些值,以及規則失敗時 currentValue 是否包含已解析的結果。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- backend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100