Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Business Logic == Business Rule?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is Business Logic and Business Rule samething???
 
Ranch Hand
Posts: 5390
1
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmm .. I think yes.
 
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
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic