CacheControl / CacheControl/json-rules-engine

Possible to use a rule as a fact in another rule?

未關閉
#305 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
3.1k
分支
507
PR 合併指標
30 天內沒有已合併 PR

描述

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_?

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

該 issue 沒有指定檔案、測試或進入點。先找出規則和事實的評估路徑,接著釐清應如何評估被引用為事實的規則;完成的標準是 Rule 2 可以重複使用 Rule 1 而不重複 Field A,且現有行為仍受到涵蓋。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
backend
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
28/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。