Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Business Logic == Business Rule?  RSS feed

 
Willian Corcel
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is Business Logic and Business Rule samething???
 
R K Singh
Ranch Hand
Posts: 5390
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmm .. I think yes.
 
Joe Pluta
Ranch Hand
Posts: 1376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the most part, I think you can safely say that Business Logic is made up of Business Rules. The business logic for a given application consists of all the business rules for that application.
A simple business rule for an order entry application might be "Customer 123 gets 10% discount on items with item class A." And if all rules were that simple, you could probably write generic business classes.
In my experience, it's usually a lot more complex than that with lots of exception conditions, which is why a lot of complex business logic is written in procedural languages such as COBOL and RPG; these usually lend themselves better to the sort of ever-changing business rules we encounter in complex business applications.
However, attempts have been made over the years to encapsulate business rules into generic business classes (one early example is The San Francisco Project). These projects to date have met with limited success, but developers keep trying!
Joe
 
Willian Corcel
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you explain what is exactly "generic business classes"?
Would they be like JavaBeans?
 
Joe Pluta
Ranch Hand
Posts: 1376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are beans that define common business objects, like Customer or Order, which can be extended for your specific application. I suggest following the link I gave earlier and reading about San Francisco. It's an excellent overview of a business application framework.
Joe
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!