github上有不少关于规则引擎的项目,其中.net java 的比较多,go的就非常少。
https://github.com/topics/rules-engine
json的:
https://github.com/CacheControl/json-rules-engine
这个只是key op value 是否超过定义的规则
https://github.com/mithunsatheesh/node-rules
c#:
https://github.com/microsoft/RulesEngine
这个是编排工作流的
java:
https://github.com/selwynshen/nics-easy-rules
这里的思想可以看看
关于json规则引擎
| 
					 1 2 3 4 5 6 7 8 9 10 11 12  | 
						{ 	"name": "transaction minimum", 	"priority": 3, 	"on" : true, 	"condition": function(R) { 		R.when(this.transactionTotal < 500); 	}, 	"consequence": function(R) { 		this.result = false; 		R.stop(); 	} }  | 
					
这个的特点是,可以直接在规则中定义函数; 这个适用于外包软件中的定制开发