rule-engine

When is a Business Rules Engine used

断了今生、忘了曾经 提交于 2019-12-18 11:31:09
问题 When is a Business Rules Engine used? What is the difference between Business Rules Engines and scripting/configuration/customization 回答1: Rules engines can do forward and backward chaining as well as inferencing. Check out Fair Isaac Blaze, Drools or iLog for implementations. 回答2: A business rules engine, or a business rules management system, should be used when you are trying to implement a decision in your code. But not just any decision. A decision that: Involves lots of rules Has rules

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

前提是你 提交于 2019-12-17 17:23:52
问题 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 . Does anyone know of a good .NET library rules library (ideally open-source)? I need something that can do nested logic expressions, e

How to implement a rule engine?

佐手、 提交于 2019-12-17 05:16:08
问题 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

How to implement a rule engine?

有些话、适合烂在心里 提交于 2019-12-17 05:16:06
问题 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

Get list of facts from rule

柔情痞子 提交于 2019-12-13 10:38:22
问题 Suppose I have 1000 rules in drool and 20 customers. I want to fire those rules which are specific to a customer. It is possible that one rule is applicable for more than on customer. I know which customer is using the application so based on that I want to get list of rules applicable for the customer and list of the facts I need to get from the db to fire those rules. After getting both lists first I'll get the values from db and than fire all the rules for that particular customer. 回答1:

Validation Layer with interdependency checks

百般思念 提交于 2019-12-13 09:14:11
问题 Existing backend services will be opened for more clients (adding a Web Service Layer to the Web-Frontend client). Currently, XML Schema is used for validation of DTOs, but since the frontend is out of our control, we will have to move extended tests (eg. interdependency tests) from the frontend layer to a new "validation layer". Now our question is if there exist a common pattern for this, eg. something similar to using RELAX NG or a rule engine? The requirement is to be able to check

UI for creating business rules in NRules

♀尐吖头ヾ 提交于 2019-12-13 03:47:24
问题 I have been searching for a rules engine to be used in a data import system i am creating. I found several rules engines but it looks like NRules is the most popular also i found CodeEffects which is good but not free. So i was wondering if there is a friendly UI to let the end-users create the rules with NRules just like CodeEffects demo. Appreciate your help. 来源: https://stackoverflow.com/questions/46756032/ui-for-creating-business-rules-in-nrules

Method or pattern to implement a Business Rules Engine in a solution?

无人久伴 提交于 2019-12-12 09:55:55
问题 I am working in a young banking company. Our solution (.NET) has an important technical debt, so we refactor it following DDD principles. We are planning to use (a) Business Rules Engine(s). Business rules deal with accounting purposes, marketing purposes, risk purposes, legal stuff... we are planning to POC the BRE to be sponsored by the business. I am looking for some feedback by people who succeded in adopting a BRE, or, a combination of BREs? Are there tools to manage the BR repository?

Drools testing with junit

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 07:53:35
问题 What is the best practice to test drools rules with junit? Until now we used junit with dbunit to test rules. We had sample data that was put to hsqldb. We had couple of rule packages and by the end of the project it is very hard to make a good test input to test certain rules and not fire others. So the exact question is that how can I limit tests in junit to one or more certain rule(s) for testing? 回答1: Personally I use unit tests to test isolated rules. I don't think there is anything too

Rule Engine - How to store rules to avoid parsing on edit?

◇◆丶佛笑我妖孽 提交于 2019-12-12 07:38:34
问题 My .NET application evaluates user defined rules at runtime. These rules are entered to system via GUI menus by user. I generate a logical statement that corresponds to it and store it in database. For example: (Name = 'John' AND Surname = 'Smith') OR Number > 12 However, when the user wants to edit a rule by GUI, I need to make a reverse operation to determine menu states from the stored rule, which is costly and complex. How would you recommend to store rules in a way that it can be