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
5
votes
1 answer

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

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')…
Ahmet Altun
  • 3,910
  • 9
  • 39
  • 64
5
votes
1 answer

Maps and strings in Drools rules

I have following Drools rule to which I send map filled with element , but when it gets executed I have element . Why do I get null when it should be "Y" for the value? When I put breakpoint in ACDebug.debug() method and inspect map after $map.put()…
azec-pdx
  • 4,790
  • 6
  • 56
  • 87
5
votes
2 answers

How can I use an SQL statement stored in a table as part of another statement?

In our Oracle database we have a table called RULES, with a field called SQLQUERY. This field is a varchar with an SQL statement stored. The PK is DM_PROJECT. A typical statement that is stored could be select ACCOUNTNUMBER from CUSTOMERS where…
Svein Bringsli
  • 5,640
  • 7
  • 41
  • 73
5
votes
1 answer

WPF, MVVM, Business Object with Validation don't match very good

For my WPF-Application I decided for MVVM. Here is my Concept how I will implement this pattern. My Models (Business Objects) are responsible for the validation (that's a must for me). ViewModels are responsible to wrap my Model for a friendly…
5
votes
4 answers

Difference between Constraints and Rules in SQL

What is the difference between using constraints and rules in SQL, preferably SQL server 2008 R2. Can anyone explain and demonstrate with a real time example
Divakar
  • 652
  • 2
  • 7
  • 18
5
votes
5 answers

How to unit test business rules?

I need a unit test to make sure I am accumulating vacation hours properly. But vacation hours accumulate according to a business rule, if the rule changes, then the unit test breaks. Is this acceptable? Should I expose the rule through a method and…
RAL
  • 917
  • 8
  • 19
4
votes
2 answers

Drools JBOSS rule Nested IF's

I am a newbie with Jboss Rule. I have gone through the documentation but I fail to find the approach to begin writing rule for following code sample. For each User code in the list { If User code = ‘11’ { If User code ‘17’ present…
Pankaj Chaswal
  • 43
  • 1
  • 1
  • 6
4
votes
3 answers

Looking for tips to build "TestMaker" (Questions and Responses) application with Evaluation Engine

I'm working on a new project. My best analogy would be a psychological evaluation test maker. Aspect #1. The end-business-user needs to create test questions. With question types. And possible responses to the questions when…
granadaCoder
  • 26,328
  • 10
  • 113
  • 146
4
votes
1 answer

Data driven business rules.

I am using SQL SERVER 2005. I have a table table1(ID,col1,col2,col3,col4); Now I have a business logic like: If col1 >= 126 and col2 > 1 then col3 = 0 if col1 >=126 and col2 < 1 then col3 = col1+col4 Now what I am trying to do is store all these…
niceApp
  • 2,913
  • 8
  • 35
  • 36
4
votes
1 answer

How can i use Drools business rule engine with python application?

I Need a scalable business rule engine, i think Drools is good one. How can i use this Drools business rule engine with python application? If Drools is not suitable with python, please suggest a good one for python? Thanks in advance, Jerin John
jerinjo
  • 65
  • 1
  • 1
  • 5
4
votes
8 answers

Do you really think that the money is not supposed to be a motivator in a start up?

I always have heard this motto from many entrepeneurs: do what you are passionate about, do not do anything just for money! I agree on the money as a mean of interchange, but nevertheless I consider that as an important factor. What do you…
Alex. S.
  • 143,260
  • 19
  • 55
  • 62
4
votes
2 answers

How can we configure a Datasource as for Camunda DMN

I am using Camunda DMN for managing rules in my application. I want the input/output conditions of the rules to be updated by the end users, is there a way to connect to it to Database and have the values fetched directly from there? Note: I have…
Vipul
  • 566
  • 5
  • 29
4
votes
3 answers

applying business rules at the database level

I'm working on a project in which we will need to determine certain types of statuses for a large body of people, stored in a database. The business rules for determining these statuses are fairly complex and may change. For example, if a person…
Jacob Mattison
  • 50,258
  • 9
  • 107
  • 126
4
votes
1 answer

Drools Decision Table object comparison gives inverted results

I have been struggling with a problem considering Drools and this is kind of my last resort. Assume I have a list of 3 people: [1, 2, 3]. Think of this list as a list of ID values for these people. Now, I want to evaluate all unique pairs of these…
Xheory
  • 85
  • 2
  • 12
4
votes
1 answer

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

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…
Rénald
  • 1,412
  • 12
  • 29
1 2
3
33 34