business-rules

Should a business rule violation throw an exception?

荒凉一梦 提交于 2019-12-03 09:06:28
问题 Should a business rule violation throw an exception? 回答1: No. It's part of normal conditional-handling logic in the program (and often just a disguised form of user error). 回答2: It depends on what the business rule is, IMO. I would venture to say "not usually" but I'd view it on a case-by-case basis. I don't think there is any one answer, as different business rules might warrant it while others might not. 回答3: First, a couple of quotes from chapter 18 of Applied Microsoft .NET Framework

Open Source based Rules Engines in Java or Python [closed]

℡╲_俬逩灬. 提交于 2019-12-03 06:53:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 9 months ago . Am seeking a Rules Engine, written in Java or Python, which supports the following features: Decision Tables Easy creation of simple business rules (preferably by a non-technical person) SOAP / REST support Have already ruled out Drools (very clunky and not user friendly for non-technical users). So far the

Drools vs JBPM ? differences, pros and cons

纵然是瞬间 提交于 2019-12-03 05:46:18
问题 I'm looking for a good rule engine. I've seen it exists two good projects : JBPM and Drools. I don't really understand differences between the two and I don't know what is the ideal tool to use. Please could you provide me more information and your experience with one or other and what do you think is the best to use to manage business rules. 回答1: jBPM is not a rule engine, it's a workflow engine . Drools is a rule engine . So Drools is what you're looking for. Drools and jBPM are companion

What pattern/patterns work best for developing rule/decision engine [closed]

拈花ヽ惹草 提交于 2019-12-03 03:45:53
I am working on a decision engine / rule evaluation engine. For example: Input: Customer and all the offences done by the customer Output: Consequences of the offences A sample case would be: Input: Customer(Jhonny Chimpo, 999-00-1111), Offences ( Broke window, slapped boss, kicked team lead in his groin) Output: Gets pink slip So the piece of code I want to write evaluates different offences based on rules for each offence and combined offence. The current code is just a maze of if and else statements. I am sure such business problems are common. What design/enterprise pattern is usually used

Should a business rule violation throw an exception?

老子叫甜甜 提交于 2019-12-03 00:37:28
Should a business rule violation throw an exception? No. It's part of normal conditional-handling logic in the program (and often just a disguised form of user error). It depends on what the business rule is, IMO. I would venture to say "not usually" but I'd view it on a case-by-case basis. I don't think there is any one answer, as different business rules might warrant it while others might not. First, a couple of quotes from chapter 18 of Applied Microsoft .NET Framework Programming (page 402) by Jeffrey Richter : "Another common misconception is that an 'exception' identifies an 'error'."

Open Source based Rules Engines in Java or Python [closed]

旧时模样 提交于 2019-12-02 19:29:14
Am seeking a Rules Engine, written in Java or Python, which supports the following features: Decision Tables Easy creation of simple business rules (preferably by a non-technical person) SOAP / REST support Have already ruled out Drools (very clunky and not user friendly for non-technical users). So far the candidates are: Nebri OS (Python / Django) Easy Rules (Java) n-cube (Groovy based) Read that Easy Rules does not support forward and backward chaining, as well as breadth first and depth first search strategies. It just executes all rules once and only once. Can anyone suggest an open

Drools vs JBPM ? differences, pros and cons

微笑、不失礼 提交于 2019-12-02 19:09:05
I'm looking for a good rule engine. I've seen it exists two good projects : JBPM and Drools. I don't really understand differences between the two and I don't know what is the ideal tool to use. Please could you provide me more information and your experience with one or other and what do you think is the best to use to manage business rules. jBPM is not a rule engine, it's a workflow engine . Drools is a rule engine . So Drools is what you're looking for. Drools and jBPM are companion projects: they integrate really nicely if you need workflows with rules. Drools is a Rete rules engine that

Storing Business Logic in Database

狂风中的少年 提交于 2019-12-02 14:18:46
We want to write some business logic rules that work on top of certain data to build reports. Not sure which is the best to store them in the database MySQL. It can have a chain of the rules and then a statement for the result as shown above. Somnath Muluk For building reports you can convert business logic in any programming language. And use database data for generating reports. Against of business logic stored in database I place a high value on the power of expression, and I don't find the SQL space to be all that expressive. Use the best tools you have on hand for the most appropriate

Criteria to Evaluate Business Rules Engines [closed]

落花浮王杯 提交于 2019-11-30 09:12:46
We are shopping for Business Rules Engines. We want to make our core application customizable to different customers with slightly different requirements. The people who would actually do the customizations are analysts. I.e. non-programmers who are technically skilled (usually have a degree in sciences). What are the criteria to evaluate business rules engines? Are there open source and comercial ones? What are your experiences in ease of use, documentation, support, price, etc. Our app is in Java. Drools (used to be Drools then JBoss Rules then Drools again) is a very good open-source rules

setup drools Kie execution server credentials

♀尐吖头ヾ 提交于 2019-11-30 07:51:32
问题 I'm trying to setup the kie execution service (kie-server-services-6.2.0) for being provisioned by the kie-drools-wb-webapp-6.2.0, when I try to get access by following the webapp url of the execution server it shows a BASIC authentication, and don't know how to proceed for getting the access to the execution server, and also get the endpoint url, for provisioning the build-in rules examples of the kie-wb and get the REST or the WSDL working. The kie-wb has a username with role "admin" and I