rule-engine

Anyone with specific pointers or experience with a 'Generic Rules Engine'?

前提是你 提交于 2019-12-04 16:06:26
I am looking to integrate with a 'Generic Rules Engine' based on the request of a customer. I think the objective is to allow business stakeholders to add 'Rules', and have those be incorporated into an overall metric calculated on a dataset. So far, the Rules i have heard seem like straightforward snippets of logic in the code. I suppose the drawback is that even though simple, this would still need to be coded... (as opposed to some kind of runtime or data driven rule specification automatically used in the analysis.) hopefully not too vague - but anyone have any success with such a thing?

Multiple boolean conditions in a rule in drools?

前提是你 提交于 2019-12-04 15:16:58
I have created a rule whose "when" condition is as follows :- when $map: Map(this["key1"].equals("value1")) and Map(this["key2"].equals("value2")) then ... The above condition is working fine. Now how do I add multiple boolean conditions in a rule? For eg. The above rule could be summarized as : a and b so if I want to create a rule : (a and b) or c then what would be actual drl syntax for it. I am new to drools so kindly help me with the syntax of the rule (a and b) or c. I did create a syntax when $map: Reindexing((Map(this["key1"].equals("value1")) and Map(this["key2"].equals("value2"))) or

Open Source Rule Engine Written in Java

大憨熊 提交于 2019-12-04 12:12:19
问题 I am working on an AI related application. For this application I need to have a rule engine. Jess is a good rule engine completely written in Java. But for my application I can’t use it due to license restrictions. Can somebody tell me an open source rule engine written in Java? 回答1: An open source off the shelf rules engine might be complete overkill for your application, I've used Drools before and it's pretty heavyweight, you'll also need to understand the framework before you use it -

Open source rules engine with decent interface for writing rules

纵然是瞬间 提交于 2019-12-04 08:16:29
问题 I'm trying to locate an open source business rules engine that has a decent interface for building the rules. OR at least one that works well on the .Net platform and has been updated sometime in the past 12 months. Thanks, 回答1: NxBRE is one option. http://sourceforge.net/projects/nxbre/#item3rd-5 回答2: .NET Application Block for Validation and Business Rules 回答3: You can use Reaction RuleML. The Rule Manager from Acumen Business has an adapter for business users to generate a valid RuleML

Does JBoss Drools really execute all rules in parallel?

冷暖自知 提交于 2019-12-04 07:35:53
I've read a lot of documentation of JBoss Drools but cannot find a definitive answer as to if all rules are executed concurrently (certainly they are fired concurrently). More specifically, for a single input and a rule set of say 1000 rules, do the "when" conditions and the "then" conditions in each rule, execute sequentially one by one, or in parallel at the same time. On the one hand the rete algorithm implies parallelism, certainly when the select nodes are collapsed. However after the nodes are optimized is the evaluation sequential? And the beta memory and join nodes look like they

Prefered methods for interacting with a rules engine

好久不见. 提交于 2019-12-04 03:24:15
I am about to dive into a rules oriented project (using ILOGs Rules for .NET - now IBM). And I have read a couple different perspectives regarding how to set up the rules processing and how to interact with the rule engine. The two main thoughts I have seen is to centralize the rule engine (into its own farm of servers) and program against the farm via a web service API (or in ILOG's case via WCF). The other side is to run an instance of the rule engine on each of your app servers and interact with it locally with each instance having its own copy of the rules. The up side to centralization is

Drools disable a rule at runtime

江枫思渺然 提交于 2019-12-04 03:21:52
I'm starting a project whith Drools and Drools Guvnor. My rules are deployed in drools guvnor. My rule engine instance can access those rules via the pkg file exposed by drools Guvnor when you do a package release build and release. This is all working fine, what I'm looking for is a solution for disabling a rule at runtime. The only solution I have right now is to go to guvnor, archive the rule and do a build + release of the package containing that rule. Isn't there another strategy ? There are a few ways of solving this, depending on your requirements and architecture. One way is to define

understanding working of Drools guvnor

为君一笑 提交于 2019-12-04 02:29:50
问题 can any one plz let me know that how drool guvnor work i went to guvnor documentation but couldn't understand the core logic of how rules are processed and how we can use drools guvnor in coherence with java code Basically i want to know how java code interacts with drools guvnor api. 回答1: There is very less documentation about latest drool 6. I suggest you watch this presentation by Mark Proctor on drools 6 (Drools Project Lead at Red Hat) and visit his Youtube Channel to watch screencasts

Prolog web programming

不问归期 提交于 2019-12-03 16:55:43
问题 At work, there was a discussion of using prolog as the backend for a rules engine on a web-app. How would this get tied into existing systems? Are there available prolog libraries for other languages allowing the invocation of prolog modules? 回答1: For SWI-Prolog, you could look to Thea2 which has support for SWRL in Prolog and can also be attached to external reasoners via JPL such as HermiT for OWL/SWRL reasoning, or Pellet, etc. On a personal note, I have used JPL several times in the past

Drools- how to find out which all rules were matched?

不想你离开。 提交于 2019-12-03 12:28:00
问题 I've one .DRL file which has say 10 rules. Once I insert a fact, some rules may be matched- how do I find out which rules were matched programmatically? 回答1: Note that this answer is valid for versions of Drools up to 5.x. If you have moved on to 6 or above, then take a look at the modified answer from @melchoir55. I haven't tested it myself, but I'll trust that it works. To keep track of rule activations, you can use an AgendaEventListener. Below is an example, as found here: https://github