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
10
votes
2 answers

rules engine design & examples in c#

I am currently writing a .net application with c# and want to check a number of rules and based on passing or failing the rules, perform an action. So I am looking to implement a generic solution that I can reuse adhering to good oop principles.…
amateur
  • 43,371
  • 65
  • 192
  • 320
9
votes
3 answers

Should business rules be enforced in both the application tier and the database tier, or just one of the two?

I have been enforcing business rules in both my application tier (models) and my database tier (stored procedures who raise errors). I've been duplicating my validations in both places for a few reasons: If the conditions change between when they…
aw crud
  • 8,791
  • 19
  • 71
  • 115
9
votes
6 answers

What pattern/patterns work best for developing rule/decision engine

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 (…
Perpetualcoder
  • 13,501
  • 9
  • 64
  • 99
8
votes
3 answers

Spring data rest and business rules validation

I want to seek a best practice for applying business rules when working with spring data rest. Lets consider following scenario: I have a Customer and Order in @OneToMany relationship. I have a business rule saying that Customer needs to have…
Jan Zyka
  • 17,460
  • 16
  • 70
  • 118
8
votes
5 answers

How do you share configuration information or business rules between languages

I'm looking for best practices for using the same data in different places without repeating yourself - this could include configuration or business rules. Example 1. Data validation rules where you want to validate on the client using javascript,…
Ken
  • 77,016
  • 30
  • 84
  • 101
7
votes
4 answers

Dynamic Business Rules

I am creating an interface where users can build their own business rules out of domain specific objects at runtime, have those rules persisted in the database and then used by the application. Some of these are complex predicates and others require…
RBZ
  • 2,034
  • 17
  • 34
7
votes
2 answers

Constraint-programming in PHP

Are there any constraint-programming libraries for PHP? Something that would be capable of handling a situation like this.
Eric Pruitt
  • 1,825
  • 3
  • 21
  • 34
7
votes
2 answers

Business rules integration to User Stories

I have a set of User Stories and I have a set of business rules (primarily laws binding my requirements to be compliant). In Agile SDLC I'm not sure where these "rules" are attached to my user stories. For example, a user story like: As a doctor I…
code-gijoe
  • 6,949
  • 14
  • 67
  • 103
7
votes
2 answers

drools drl how to do not conditions

I am trying to write a rule in drools drl language where I am want to do something like !(A && B) but it doesnt seem to like the ! operator or the word not. I am struggling to find good documentation on drools Please see sample code below: rule…
mh377
  • 1,656
  • 5
  • 22
  • 41
7
votes
2 answers

What if maven central goes down for good?

At my work we are working on different projects and most of them are maven projects now. Sometimes, I think that what happens if all of sudden the Maven Central repository goes down for good. Now, there are different scenarios in which it can go…
Makky
  • 17,117
  • 17
  • 63
  • 86
6
votes
2 answers

Dynamic validation using custom rules

I've been using .Net languages for 4 years. I develop 3 tier and 5 tier applications using WCF, ASP.NET for web applications, and C# for windows applications. Every time I start a project, business rules and validations are a concern. Where should I…
Arian
  • 12,793
  • 66
  • 176
  • 300
6
votes
0 answers

Drools performance as a rule engine using multiple threads

I'm using a single threaded drools project as a first-match policy/condition evaluation engine. I'm using the following code to get a kieSession from the kieContainer, and evaluate the predicate based on the conditions. KieContainer currentContainer…
Shashank
  • 325
  • 4
  • 12
6
votes
4 answers

Resources for implementing ERP and other Enterprise applications?

When developing an ERP-like software or any other complex business system, what resources do you go to for best practices? I'm a developer, not an accountant, not a purchaser, not a manager. I do have project management experience in engineering…
Renaud Bompuis
  • 16,596
  • 4
  • 56
  • 86
6
votes
2 answers

how to express one object is null when I use drools rule engine

I want to know how can I express one object is null on the left hand side when I use drools rule engine? And anybody can tell me how to use the drools keyword "not" and so on.Thank you!
SnowQin
  • 63
  • 1
  • 1
  • 3
5
votes
2 answers

Drools rule "not exists"

I'm using JBoss Drools to write some business rules. I got a problem on the "not exists" rule.Here is my code. rule "ATL 27R-A12 Subfleet A319-100 Departure configuration list has flap 1" salience 20 no-loop true when …
Nigel Wu
  • 195
  • 1
  • 4
  • 15
1
2
3
33 34