rule-engine

.Net rules engines [closed]

血红的双手。 提交于 2019-11-28 16:15:25
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am am working on a project that would benefit from a rules engine. I have consided just using the windows workflow engine, but I

Lightweight Rules Engine in Javascript [closed]

痴心易碎 提交于 2019-11-28 15:36:22
问题 I am looking for suggestions for a lightweight rules engine implemented in Javascript. The reason for such an implementation is to build a very lightweight but fast browser-based simulation using a small set of rules (less than 20). The simulation would take half a dozen parameters and run the rules and display results in the browser without any need to go back to the server. Think of a UI with a couple radio buttons, checkboxes, text boxes and sliders to control the parameters. The

Deprecated code of drools to version 6.2

半世苍凉 提交于 2019-11-28 05:49:32
问题 I have an old and deprectaed code of drools, this code can read a rule file (drl) outside of the container and can use any Value Object and any class. CommandExecutor ksession; KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); String file = System.getenv("DOMAIN_HOME")+"/mydrls/business.drl"; kbuilder.add(ResourceFactory.newFileResource(file), ResourceType.DRL); KnowledgeBase kbase = kbuilder.newKnowledgeBase(); ksession = kbase.newStatelessKnowledgeSession();

Looking for simple rules-engine library in .NET [closed]

北战南征 提交于 2019-11-28 02:36:19
Does anyone know of a good .NET library rules library (ideally open-source)? I need something that can do nested logic expressions, e.g., (A AND B) AND (B OR C OR D). I need to do comparisons of object properties, e.g., A.P1 AND B.P1. (Ideally, I could compare any property -- A.P1 AND B.P2). It should store the rules in a database (I've got a lot of simple configurable logic). And it should have a rule creation/management API. The management tool would have to inspect the instances to determine which properties are available and which constraints exist. Thanks! Oh, one more thing. As a rules

Rules engine for spatial and temporal reasoning?

妖精的绣舞 提交于 2019-11-27 23:03:11
问题 I have an application that receives a number of datums that characterize 3 dimensional spatial and temporal processes. It then filters these datums and creates actions which are then sent to processes that perform the actions. Rinse and repeat. At present, I have a collection of custom filters that perform a lot of complicated spatial/temporal calculations. Many times as I discuss my system to individuals in my company, they ask if I'm using a rules engine. I have yet to find a rules engine

What rule engine should I use? [closed]

拈花ヽ惹草 提交于 2019-11-27 15:52:24
问题 What are some of the best or most popular rule engines? I haven't settled on a programming language, so tell me the rule engine and what programming languages it supports. 回答1: I am one of the authors of Drools, I will avoid pimping my wares. But some other options are Jess (not open source) but uses the clips syntax (which we also support a subset of) - which is kinda a lisp dialect. It really depends what you want it for, Haley have strong Natural language tech (and they recently aquired

Ruby & Rules Engines

心已入冬 提交于 2019-11-27 12:25:25
问题 I'm looking for a simple way to let users define a set of rules to filter objects. Eg. let them define something like "notify me about a booking if booking date < 2009/04/30 AND value > 100.00" More or less: I'd like to have a Ruby rules engine with custom DSL. Is there a library offering that? Came across Ruleby, but it doesn't support custom DSL, yet. What's the best apporach to do that? 回答1: Take a look at Treetop. You can define your DSL as a Parsing Expression Grammar and then parse it

creating a simple rule engine in java

人走茶凉 提交于 2019-11-27 10:20:17
I am exploring different ways to create a simple business rule engine in Java. I need to present the client with a simple webapp that lets him configure a bunch of rules. A sample of rule base might look like this : Here's example: IF (PATIENT_TYPE = "A" AND ADMISSION_TYPE="O") SEND TO OUTPATIENT ELSE IF PATIENT_TYPE = "B" SEND TO INPATIENT The rule engine is pretty simple, the final action could be just one of two actions, sending to inpatient or outpatient. The operators involved in an expression could be =,>,<,!= and logical operators between expressions are AND, OR and NOT . I want to

Rules Engine - pros and cons

牧云@^-^@ 提交于 2019-11-27 10:04:26
I'm auditing a project that uses what is called a Rules Engine . In short, it's a way to externalize business logic from application code. This concept is entirely new to me and I'm pretty skeptical about it. After hearing people talk about Anemic Domain Models for the past few years, I'm questioning the Rules Engine Approach. To me they seem like a great way to WEAKEN a domain model. For example say I'm doing a java webapp interacting with a Rules Engine. Then I decide I want to have an Android app based on the same domain. Unless I want the Android app to interact with the Rules Engine as

How to implement a rule engine?

我的梦境 提交于 2019-11-26 21:12:15
I have a db table that stores the following: RuleID objectProperty ComparisonOperator TargetValue 1 age 'greater_than' 15 2 username 'equal' 'some_name' 3 tags 'hasAtLeastOne' 'some_tag some_tag2' Now say I have a collection of these rules: List<Rule> rules = db.GetRules(); Now I have an instance of a user also: User user = db.GetUser(....); How would I loop through these rules, and apply the logic and perform the comparisons etc? if(user.age > 15) if(user.username == "some_name") Since the object's property like 'age' or 'user_name' is stored in the table, along with the comparison operater