Chapter 1 — From Objects to Business Activities¶
© 2026 S++ project contributors. All rights reserved. Book copyright.
Object-oriented modeling starts with entities and assigns operations to them. Role-oriented modeling starts with a business activity: its objective, participants, rules and completion conditions. Both can use objects; the difference is which concept organizes the model.
The Modeling Subject¶
For a purchase, an object-oriented design may begin with Customer, Product, Inventory and Order, then distribute purchasing across their methods. Each method can be correct while the purchase remains incomplete.
A role-oriented design instead asks:
- What business result constitutes a completed purchase?
- Which participating capacities are required?
- Which facts and changes establish that result?
- Which operations must succeed together?
The model identifies Buyer, Goods and Seller as participating roles; concrete entities provide their facts. Roles are defined in Chapter 3, while the reusable behavior is organized through services and scenarios.
Actions Are Not Complete Behavior¶
Setting an order status, reserving inventory or sending a payment request is an action. Purchasing is a behavior with an objective and a completion criterion. If inventory is reserved but the order agreement is not established, the complete behavior has not succeeded, regardless of the success of an individual operation.
Similarly, serialization and transport are useful operations, but are not business completion criteria. The business result determines which actions matter and which effects require joint settlement or recovery.
One Running Example¶
Alex purchases two units of goods from a store. The activity must establish eligibility, agreed quantity and price, an inventory commitment and an order record. A successful outcome satisfies those terms together. The model then assigns the necessary responsibilities to participants rather than declaring any single object's method to be the whole purchase.
This change of starting point does not eliminate entities or their data. It makes their capacity in an activity and the activity's result explicit. The next chapter gives that relationship a compact expression.