What are Business Objects and what is Business Logic?

后端 未结 7 1639
失恋的感觉
失恋的感觉 2020-12-23 11:40

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 Ob

7条回答
  •  不思量自难忘°
    2020-12-23 12:12

    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.

提交回复
热议问题