Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Business logic
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Details and example== Business logic: * Prescribes how [[business objects]] interact with one another * Enforces the routes and the methods by which business objects are accessed and updated Business rules: * Model [[Real life|real-life]] business objects (such as accounts, loans, itineraries, and inventories) Business logic comprises:<ref>{{cite news|url=http://www.ebizq.net/topics/bpm/features/5757.html?&pp=1|title=The Challenge of BPM Adoption|date=2005-03-27|author=Steven Minsky|newspaper=Techtarget |publisher=eBizQ}}</ref> * [[Workflow]]s that are the ordered tasks of passing documents or data from one participant (a person or a software system) to another. Business logic should be distinguished from business rules.<ref>{{cite web|url=http://c2.com/cgi/wiki?BusinessLogicDefinition|title=Definition of business logic|date=2013-12-24}}</ref> Business logic is the portion of an enterprise system which determines how data is transformed or calculated, and how it is routed to people or software (workflow). Business rules are formal expressions of business policy. Anything that is a process or procedure is business logic, and anything that is neither a process nor a procedure is a business rule. Welcoming a new visitor is a process (workflow) consisting of steps to be taken, whereas saying every new visitor must be welcomed is a business rule. Further, business logic is procedural whereas business rules are declarative.<ref>{{cite web|url=http://www.omg.org/news/meetings/tc/mn/special-events/br/Ulrich.pdf|author=William Ulrich|title=OMG Business Rules Symposium|url-status=dead|archive-url=https://web.archive.org/web/20131224094752/http://www.omg.org/news/meetings/tc/mn/special-events/br/Ulrich.pdf|archive-date=2013-12-24}}</ref> For example, an [[e-commerce]] website might allow visitors to add items to a shopping cart, specify a shipping address, and supply payment information. The business logic of the website might include a workflow such as: * The sequence of events that happens during checkout, for example a multi-page form which first asks for the shipping address, then for the billing address, next page will contain the payment method, and last page will show congratulations. There will also be business rules of the website: * Adding an item more than once from the item description page increments the quantity for that item. * Specific formats that the visitor's address, email address, and credit card information must follow. * A specific communication protocol for talking to the credit card network The web site software also contains other code which is not considered part of business logic nor business rules: * Peripheral content not related to the core business data, such as the [[HTML]] that defines the colors, appearance, background image, and navigational structure of the site * Generic error-handling code (e.g., which displays the HTTP Error Code 500 page) * Initialization code that runs when the web server starts up the site, which sets up the system * Monitoring infrastructure to make sure all the parts of the site are working properly (e.g., the billing system is available) * Generic code for making network connections, transmitting objects to the [[database]], parsing user input via HTTP POST events, etc.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)