规则引擎是否支持 NOT IN 来检查元素是否不存在在容器中或 .Net 的 Json 规则表达式中的元素列表中?

Does Rule Engine Supports NOT IN to check if the element is not present in container or List of Elements in Json Rule Expressions in .Net?

提问人:Dev24 提问时间:10/6/2023 最后编辑:Denis MichealDev24 更新时间:10/6/2023 访问量:23

问:

{"Rules": [{"Expression": " element NOT IN RestrictedElementList  ", "RuleName": "MyRule", "SuccessEvent": "01"}], "WorkflowName": "MyRule"}

规则引擎是否支持 NOT IN?我正在尝试检查该元素是否存在于 中。RestrictedElementList

我试过这个

{"Rules": [{"Expression": " element NOT IN RestrictedElementList  ", "RuleName": "MyRule", "SuccessEvent": "01"}], "WorkflowName": "MyRule"}

{"Rules": [{"Expression": " !(element IN RestrictedElementList)  ", "RuleName": "MyRule", "SuccessEvent": "01"}], "WorkflowName": "MyRule"}
json .net 规则引擎

评论

0赞 Panagiotis Kanavos 10/6/2023
你在说什么规则引擎?.NET 中有很多规则引擎产品和库。我敢打赌,不止一个使用 JSON 来序列化规则

答: 暂无答案