Questions tagged [business-rules]

A business rule is a statement that describes a business policy or procedure. Business logic describes the sequence of operations that is associated with data in a database to carry out the rule.

A business rules engine works by separating execution code for business rules from the rest of the business process management system. This allows the end user to change business rules without having to ask a programmer for help. When a change is made, the engine will evaluate the change's effect on other rules in the system and flag the user if there is a conflict. Business Rules Model

497 questions
207
votes
10 answers

Business logic in MVC

I have 2 questions: Q1. Where exactly does "business logic" lie in the MVC pattern? I am confused between Model and Controller. Q2. Is "business logic" the same as "business rules"? If not, what is the difference? It would be great if you could…
47
votes
3 answers

how to learn Drools or another rule engine fast

We're embarking on a module which will generate some recommendations based on some criteria. The criteria will be in the form of set of Business Rules and hence I was considering using a Business Rule Engine like Drools(open source and java :-) ) we…
anjanb
  • 12,999
  • 18
  • 77
  • 106
42
votes
14 answers

creating a simple rule engine in java

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…
Jay
  • 2,394
  • 11
  • 54
  • 98
41
votes
6 answers

Design Pattern to implement Business Rules with hundreds of if else in java

I have to implement certain business rules with hundreds of lines of below code: if this then this else if then this . . // hundreds of lines of rules else that Do we have any design pattern which can effectively implement this…
SCoder
  • 919
  • 2
  • 11
  • 26
36
votes
1 answer

Business rule validators and command handler in CQRS

I am new to CQRS and I am tying to make sense of business rule validation within the write side (domain). I know that client side validation should be done in terms of valid date (required field, string length, valid email, etc) and business…
kind_robot
  • 2,383
  • 4
  • 31
  • 45
34
votes
11 answers

Storing Business Logic in Database

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.
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
26
votes
9 answers

Where are the Business Rules in MVC

Now that everyone is talking about MVC, I notice that the business rules are not being addressed. In the old days of the 3-tier architecture, The business rules were in the middle layer. Where do they fall in the new MVC?
25
votes
4 answers

Drools vs JBPM ? differences, pros and cons

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…
Jerome Cance
  • 8,103
  • 12
  • 53
  • 106
20
votes
14 answers

Should a business rule violation throw an exception?

Should a business rule violation throw an exception?
E Rolnicki
  • 1,677
  • 2
  • 17
  • 26
13
votes
3 answers

When is a Business Rules Engine used

When is a Business Rules Engine used? What is the difference between Business Rules Engines and scripting/configuration/customization
flybywire
  • 261,858
  • 191
  • 397
  • 503
12
votes
4 answers

Business rules that are valid for specific time span – how to manage in an orderly manner

I just started working for a government agency and I have come across an interesting problem: business rules depend on legislature and as such they have to respect the exact time periods that legislature has been active. To give you an example, if…
Dan
  • 11,077
  • 20
  • 84
  • 119
11
votes
5 answers

What is a good Business Rule Engine(BRE) for .Net?

Do you know of a good business rule engine for .Net? I know Drools.Net is one but it seems to me that its inactive. There is also NXBRE but seems to me that it is not solid enough. Does any body here have a good one? Please suggest. Update 1, I did…
mr.b
  • 2,708
  • 8
  • 39
  • 64
11
votes
1 answer

How can developers let business users define application logic?

I'm working on a new application at work, and a manager is really pushing the concept of a business rules management system (BRMS) and a workflow management system, and I'm trying to figure out the best way of integrating these types of tools. With…
Bret Walker
  • 1,796
  • 5
  • 20
  • 41
10
votes
4 answers

Criteria to Evaluate Business Rules Engines

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…
flybywire
  • 261,858
  • 191
  • 397
  • 503
10
votes
2 answers

What is better way to validate business rules in ASP.NET MVC application with 3 layer architecture?

I'm developing a ASP.NET MVC application with 3 layer classic architecture 1. data access (Repositories) 2. Business logic (Services ) 3. Application layer (MVC Controller classes) The task is follow there is domain class Learner and learners can…
Sergey K
  • 4,071
  • 2
  • 23
  • 34
1
2 3
33 34