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
?
an object that defines business specific application logic. Report.
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).
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.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With