Java 或 Python 中基于开源的规则引擎

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34010260/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 15:14:10  来源:igfitidea点击:

Open Source based Rules Engines in Java or Python

javapythonrule-enginebusiness-rules

提问by PacificNW_Lover

Am seeking a Rules Engine, written in Java or Python, which supports the following features:

我正在寻找用 Java 或 Python 编写的规则引擎,它支持以下功能:

  1. Decision Tables
  2. Easy creation of simple business rules (preferably by a non-technical person)
  3. SOAP / REST support
  1. 决策表
  2. 轻松创建简单的业务规则(最好由非技术人员创建)
  3. SOAP/REST 支持

Have already ruled out Drools (very clunky and not user friendly for non-technical users).

已经排除了 Drools(非常笨重,对非技术用户不友好)。

So far the candidates are:

到目前为止,候选人是:

  1. Nebri OS(Python / Django)
  2. Easy Rules(Java)
  3. n-cube(Groovy based)
  1. Nebri 操作系统(Python / Django)
  2. 简单规则(Java)
  3. n-cube(基于 Groovy)

Read that Easy Rules does not support forward and backward chaining, as well as breadth first and depth first search strategies.

阅读 Easy Rules 不支持向前和向后链接,以及广度优先和深度优先搜索策略。

It just executes all rules once and only once.

它只执行一次所有规则。

Can anyone suggest an open source based Rules Engine that's either written in Java or Python?

任何人都可以建议使用 Java 或 Python 编写的基于开源的规则引擎吗?

Thanks for taking the time to read this.

感谢您抽时间阅读。

回答by infotoni91

Take a look at durable_rules. It's a very state-of-the-art rulebased system for various languages, including python. I don't know if it's meeting your requirements but it's really worth a look ;)

看一下Durable_rules。这是一个非常先进的基于规则的系统,适用于各种语言,包括 python。我不知道它是否满足您的要求,但确实值得一看;)

回答by melchtheitroad55

Late to the party, but anyone reading this now should certainly be looking at droolsif they are interested in a java based BRMS.

迟到了,但是现在的人读这当然应该看滴料,如果他们有兴趣在一个基于Java BRMS。

回答by Gregor

I really like the simplicity of business-rules, you can always add an API layer like REST on top of that.

我真的很喜欢business-rules的简单性,你总是可以在它之上添加一个像 REST 这样的 API 层。