Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are Business Objects and what is Business Logic?

When reading, I keep seeing references to what they call Business Objects. I've looked up on Wikipedia and such but I keep not getting what a Business Object is.

Is there any easy explanation of what it is for someone that doesn't know a thing about software architecture and such?

Also, what is Business Logic?

like image 370
devoured elysium Avatar asked Jul 18 '10 00:07

devoured elysium


People also ask

What is a business logic object?

an object that defines business specific application logic. Report.

What is a business object example?

For example, a "Manager" would be a business object where its attributes can be "Name", "Second name", "Age", "Area", "Country" and it could hold a 1-n association with its employees (a collection of Employee instances).

What is an example of business logic?

For example, a person writing business logic might include an algorithm for how to calculate taxation information using a specific mathematical formula. An employee can use this business logic to add a tax amount to a customer's purchase to give them their total amount.

Why is it called business logic?

If you were a professional graphic designer, there certainly would be business involved with using your imaging application - your job is your business! So "business logic" refers to the parts of the code that define how the user conducts his business (in this case, manipulating images).


1 Answers

This is easy

Every entity in the system, representing the human-world object which the system is expected to interact with is a business object.

The human-world logic in the system around manipulating business objects is a business logic.

This is opposed to the objects and logic being part of the implementation details.

For example in the multi-tier trading system order/trade will be business objects, but heartbeat will be implementation detail.

The logic of encoding order/trade objects for streaming will be implementation detail, while the logic of changing the order state to 'completed' once trade arrives is a business logic.

like image 143
bobah Avatar answered Oct 03 '22 23:10

bobah