business-rules

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? ...

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, but you want to make sure by validating on the server. Example 2. Database access where y...

What is the proper method for coding, then retrieving business rules static error (NOT exception messages) messages in an ASP.NET web application?

I've skinned this cat a few different ways over the last 6 years.. hardcoded strings, static classes with consts, and resource files. What approach do you use, and why? Bonus points for integrating with client-side error messages! ...

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 (non-software related) and I have a fair amount of experience on business processes in Desig...

Defining Business Rules

I have been tasked to come up with a list of the Business rules in one of our current applications. We have a very old document that has somethings, but has not been maintained, and as such is very outdated and inaccurate. In an attempt to do it better than before, and hopefully more useful I have been asking fellow developers what type...

Should a business rule violation throw an exception?

Should a business rule violation throw an exception? ...

Help with Business Rule

I have a nodeset that contains various number of nodes with unique values. I want the rule to fire if the nodeset contains nodes with some of the possible values. Example: Instance containing a nodeset with one node with Y=1 AND another node with Y=2 should fire rule. Instance that should fire: - X - - Y - 1 - - Y - 2 - - Y - 3 - - ...

Best Open Source Business Rule Management System

Does anyone know of a solid free and/or open source business rule management system. The organization I work for is developing increasingly more complex (business-wise) applications and it would be really nice to have a rule based system for saving, maintaining and allowing inter-relation of those business rules over time. Edit: Additio...

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 technically skilled (usually have a degree in sciences). What are the criteria to evalua...

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 ...

Buisness Rule and Process Management?

After some searching in google and wikipedia, I still can not get a clear image about the "difference" between BRMS (Business Rule Management System) and BPM (Business process management)/workflow system. can those two concepts do the same thing from each other? (theoretically) A "rule" can be modeled as a "process" as well. isn't it? ...

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 then call that method from both my code and my test to ensure that the unit test isn't so...

Can we use Extension Methods for building business rule engines?

I am looking to do something like this public class ProductBiz: BizBase<Product> { public List<String> BrokenRules {get;set;} // Some kind of data + biz operation implementation } public static class ProductBizExtensions{ public ProductBiz Rule1(this ProductBiz prodBiz) {} public ProductBiz Rule2(this ProductBiz prodBiz) {} public...

Business logic/rules - processing in the database or in memory

because of my over abundance of hubris, I am working on a program that would process some of the data better than the current system we are currently using. My question is when the implementing business rules (i.e. if this piece of data matches this pattern send to this que) is it best practice to: simply load all the rules into memory ...

How do you track where in your code your business rules are implemented?

How do you keep track of the business rules in your application code? Lets say we are designing an order entry system. One of the business rules might be: If the stock level of an item drops below its reorder point, create a purchase order for that item to bring its stock level back up to the minimum. So, in our code, we might ha...

PHP Business Rule Engine

Are there any Business Rule Engine implemented in PHP ? If yes, please list them. If not, than why not, what are the reasons behind not having Business Rule Engine in PHP and having it in Java ? ...

Validation Engine....Business Rules.

Hello, subject is... I have a Linq to SQL class that i need to define a "rule engine" before saving it back to the database, this of course involves all foreign keys - associations, common, the whole object graph i created and manipulated, or value changed object from the database. Thing is, i don't have any experience on the subject a...

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 ( Broke window, slapped boss, kicked team lead in his groin) Output: Gets pink slip So ...

Code improvements for implementing business logic

I had asked this question previously on SO. This is related to it. We have code base similar to this: IRecipie FindRecipiesYouCanMake(IEnumerable<Ingredientes> stuff, Cook cook) { if(stuff.Any(s=>s.Eggs && s.Flour) && cook.DinerCook) { if(s=>s.Sugar) return new Pancake("Yum"); if(s=>s.Salt) return new Omlette("Yay"); } /*....

BizTalk Business Rules Engine - Repeating Elements Question

Hello I'm trying to create what I think should be a relatively simple business rule to operate over repeating elements in an XML schema. Consider the following XML snippet (this is simplified with namespaces removed, for readability): <Root> <AllAccounts> <Account id="1" currentPayment="10.00" arrearsAmount="25.00"> <AllCu...