A model aimed at a change-friendly architecture takes into account both structure (which concepts are central to the domain and how they relate) and behavior (what the system(s) should do). This calls for a well-balanced mix of “domain driven” and “behavior driven” approaches
The tendency to stick with the old, tried-and-tested “this is how we’ve always done it” tends to follow the level in the hierarchy. The higher up in an organization you model, the older the modeling techniques used. They may be completely up to date at the application level, but up at the EA/EITA level you might get the occasional nostalgia trip back to the 1970s, for better or worse.
The good thing about ER diagrams, data models, and eventually CA ERwin was the realization that redundancy comes at a cost and should be prevented – an approach spread in the 1970s by Codd & Date (relational algebra with normal forms, and eventually the SQL standard).
The less good thing was that this realization stopped at the structuring of data. Companies gradually cleaned up there, but not in the program libraries, nor in the business processes. There, duplication was left to flourish – and with it, duplicated work, especially when changes occurred.
The natural limitation of ER and data models is precisely their focus on data (aside from certain types of rules, but not all). They are not suited for modeling behavior/flow such as services/operations, lifecycles, scenarios, business processes, or human-computer interaction.
Sometimes they’ve been supplemented with use cases (a good way to describe interaction), but otherwise people have still settled for implicit CRUD behavior, i.e. “dumb” data shuffling where the system doesn’t “see” real business events but only mechanically performs “Create – Retrieve – Update – Delete”, so that the actual business logic remained scattered across cheat sheets and people’s heads. This had repercussions further up on the business processes, where BPM in the 1990s and 2000s later revealed numerous inconsistencies, duplicated work, overlaps, and semi-manual improvisation.
Domain and object models in UML are therefore well positioned as a link to carry behavior all the way through the models, from BPM’s business process (a flow “from field to loaf”) via the senior user’s use case (the system’s behavior toward its surroundings) to the architect’s EITA, which brings together data and behavior (business-adapted services/”semantic operations”, as opposed to CRUD).
It’s also easier to derive or generate a data model from a class diagram in UML than the other way around, even though that involves more than just a single menu item in a UML tool (and if you’ve committed to data modeling alone, there’s no behavior model to click on in the first place).
The interplay between structure and behavior affects both the modeling style and the architecture. What leans toward being an entity in ER modeling doesn’t have to become a class in a UML model. An example of a service/operation (i.e. behavior) in the business logic layer that simplifies the structure is a web shop where every click on “Pay” simply sends a request to an independent secure payment broker. In the UML model, “Pay” can instead become an operation, given of course a transaction log and confirmation from the payment broker to both the buyer and the shop (incidentally, neither the Data Inspection Board nor the customers would be any happier if bank card data ended up scattered across countless web shops’ data models and databases). A reverse example, where the data layer noticeably simplifies the behavior model, is ready-made nested SQL or OLAP tools in databases. If they can handle complex views for common requests, many sequence diagrams in UML can show them as just a single component – instead of perhaps 10 tables and internal loops encapsulated within them (under the “hood”, by the SQL engine or OLAP package).
You’ll get more opportunities to explore the relationship between structure and behavior in exercises during Informator’s modeling courses. Welcome.
consultant, Kiseldalen.com
UML 2 Professional, OCUP Advanced Level (certification level 3 of 3)
Lead author of UML Xtra Light – How to Specify Your SW Requirements
Has collaborated with Informator since spring 1996 in modeling, UML, requirements, analysis, and design. Currently teaches courses in Architecture and in modeling:
as well as Informator’s fully booked breakfast seminar on use cases.
/Milan Kratochvil