[]{.cart-text} {.btn .cart .open-checkout} []{.btn-text-span .d-none .d-sm-inline-block .d-lg-none .d-hg-inline-block}{.btn .btn-secondary .checkout .open-checkout}
{.home} / UML{.type} / Modeling IT Systems{.type}
Constructing the External View {#constructing-the-external-view .title}
The following checklist shows the steps necessary to construct the external view. Subsequently, we will explain the individual steps further.
Checklist 4.1 Constructing Diagrams in the External View
- Collect information sources---How am I supposed to know that?
- Identify potential actors---Who works with the IT system?
- Identify potential business use cases---What can be done with the IT system?
- Connect business use cases---Who can do what with the IT system?
- Describe actors---Who or what do the actors represent?
- Search for more business use cases---Which other functionalities does the IT system have to provide?
- Edit business use cases---What actually has to be included in a business use case?
- Document business use cases---What happens in a business use case?
- Model relationships between business use cases---What can be reused?
- Verify the view---Is everything correct?
The order in which these steps are given makes sense. However, this order is not mandatory, since in practice, the individual steps often overlap heavily.
Normally, these steps will be carried out by an analyst, who needs to have a general understanding of the IT system as well as of the business system as it was modeled in Modeling Business Systems. However, it is indispensable to consult additional knowledge carriers, such as users of the system. The result of these work steps is the external view, which has to be read and understood by domain experts.
Collect Information Sources---How Am I Supposed to Know That?
Generally, there are quite a number of information sources that can be used for the formulation of the external view:
- Certainly, the business system model is the first source that should be drawn upon. The business system’s actors, workers, and use cases are a good starting point from which it is possible to derive actors and use cases of the IT system (see Modeling Business Systems).
- Technical specifications, project specifications, and similar documents.
- Future users are a very important source for this user-oriented external view.
- Technical experts in the IT system’s area of application.
- Organization charts, organizational structure, and job descriptions.
Taking up the users’ standpoint is very helpful. Talk with users or observe them performing their jobs.
Identify Potential Actors---Who Works with the IT System?
This step is about identifying a first selection of actors. This selection does not yet have to be complete or correct. The rule applies: the more, the better. You can continue working with these actors in subsequent steps.
Answering the following questions (for instance, with users of the system) will help identify potential actors. While doing this, you should try to abstain from using persons mentioned by name. Instead, try to form groups of people or actors:
- Which actors and employees of the business system deal directly with the IT system?
- Which groups of people need support from the IT system in order to complete their daily work?
- Which groups of people perform the most important main functions of the IT system?
- Which groups of people are needed to carry out secondary system functions, such as maintenance and administration?
- Which groups of people from the organization model (see organization chart) of the company or division work with the IT system?
Here, it is important to picture concrete and direct interactions with the IT system under consideration.
At a check-in counter it is the check-in employee who is in direct interaction with the IT system. At the check-in machine, where passengers without luggage can check in with their machine-readable tickets, it is the passenger who directly interacts with the IT system, inserting the ticket and choosing one of the empty seats.
A passenger is also an actor in the business system; check-in employees and boarding employees, on the other hand, are not. They are employees, and because of that, they are part of the business system, as shown in Figure 4.15:
Identify Potential Use Cases---What Can be Done With the IT System?
This step is about finding a first selection of use cases. Here too, the rule applies: the more, the better. Answering the following questions will help identify potential use cases:
- Which business use cases of the business system are supported by the IT system?
- Which business activities of the business system should be supported by the IT system?
- Depending on the degree of detail of the business activities, in this step a use case can be constructed for each business activity.
- What are the goal and purpose of the IT system?
- What are the main functions of the IT system?
- For what do actors need the IT system?
- Which secondary system functions, such as maintenance and administration, does the IT system require?
- What functions does the interface prototype have?
Connect Actors and Use Cases---Who Can Do What with the IT System?
Assigning business use cases to actors generates a first draft of the use case diagram, as shown in Figure 4.16. Here, the following question should be answered:
- Which actor can carry out which use cases?
This first draft constitutes a foundation from which the use case diagram can be edited and refined, as shown in Figure 4.17.
Describe Actors---Who or What do the Actors Represent?
An actor in a diagram has to be named (or renamed) in a way that clarifies the role that is represented. The question is:
- How can an actor be accurately described? Here it is extremely important that the terminology of the domain is used. Users of the IT system have to recognize themselves in the actors; otherwise they will not understand the use case diagram! If required, the actor can be defined with a comment in addition to an accurate name. Such a comment can include the field of responsibility of the actor, the requirements of the IT system from the actor’s perspective, or a formal definition of the role that the actor plays.
Search for More Use Cases---What Functionalities does the IT System have to Provide?
Once you have identified a first selection of use cases, these can be used as the starting point for the completion of the use case diagram. Use cases that were overlooked before can be identified by asking the following questions, based on a particular use case:
- Is there anything that has to be done with the IT system at some point before a particular use case can be executed??
- Is there anything that has to be done with the IT system at some point after a particular use case is executed?
- Is there anything that has to be done with the IT system if it does not execute a particular use case?
It is very important not to lose sight of the real IT system. There is a risk of modeling use cases that lie outside the IT system under consideration. For example, purchasing the plane ticket, which has to occur before check-in, does not belong to the considered IT system passenger services.
In our case study, the answers for the use case check-in could be as follows:
- Information about ticket and flight has to be obtained before check-in.
- Boarding has to take place after check-in.
- The plane ticket has to be invalidated if the passenger does not appear at check-in.
Edit Use Cases---What Actually Has to be Included in a Use Case?
The most difficult part of modeling use cases probably is finding the appropriate degree of detail for these use cases. Here, the range is between the two extremes shown in Figure 4.18:
Neither approach makes sense. If the entire IT system is crammed into one use case, a practically meaningless use case diagram is constructed. Nothing useful can be learned from it. If on the other hand, use cases are itemized too strongly, the use case diagram gets too complex and contains too many use cases with interrelationships that are hard to recognize.
Fortunately, there are some criteria that will help you find the optimal scope of a use case. To prevent use cases from becoming too large, we can ask the following questions for each use case:
- Does the use case consist of a behaviorally related sequence of interactions that belong together (an interaction sequence)? Items that are included in a business use case have to be directly related. Issuing a boarding pass and searching for lost luggage are not related at all. Use cases that violate this criterion have to be divided.
- Can a single actor carry out the use case? Even though UML allows more than one actor to be involved in the execution of a use case, in most cases, it is better to abstain from this option. If a use case describes the interaction of a person with a computer, it implies that not more than one person should be involved in the interaction. Use cases that violate this criterion have to be divided.
To avoid the creation of use cases that are too small, we can ask the following questions for each use case:
- Does the use case deliver a tangible and relevant result? A use case cannot describe an incomplete sub-step by itself, such as choose customer. Rather, a use case has to produce a result that makes sense from a domain point of view. Use cases that violate this criterion have to be combined with other use cases.
- Is the use case never performed alone, but always in a sequence in combination with other business use cases? Use cases are not supposed to describe sub-steps that are only executed in combination with other sub-steps. Use cases that violate this criterion have to be combined with other use cases.
Verifying existing use cases with these questions can help finding a meaningful degree of detail by dividing or combining use cases.
Document Use Cases---What Happens in a Use Case?
The information from the use case diagram is not sufficient to understand use cases. The flow of interaction that stands behind a use case has to be described. In addition to purely verbal description, description in a use case sequence diagram has proven to be especially valuable. We can ask the following questions when developing a use case sequence diagram for the use case:
- What steps are involved in working with the IT system? To answer this question we have to observe the actor’s work with the IT system. What does the actor do with the IT system? What does he or she enter? What does the IT system display? What does the interaction look like? Here, it is important to find the appropriate level of detail. Not every key pressed makes up a work step. The next two questions will help you find the appropriate level of detail.
- Which information is the use case meant to provide to the actor? If information should be displayed, a query event is sent to the IT system.
- Which information is meant to be stored, modified, or deleted in the IT system? If information should be changed, a mutation event is sent to the IT system.
The description of the flow is, therefore, a succession of steps in which information is entered or queried, in other words, an interaction. During the description of the flow, the IT system is always viewed as a black box.Because, in reality, a use case does not always take place in the same manner, it has proven valuable to use simple control structures in descriptions to show alternatives and branches, as illustrated in Figure 4.19:
The documentation of use cases should also include a description of the user interface utilized. An example of this is the dialogue window labeled [B27] above, shown in Figure 4.20:
Model Relationships between Use Cases---What can be Reused?
If you notice that certain parts of the interaction are the same in several use cases, these commonalities can be included into their own use case. With an include relationship this new use case can be utilized in other use cases. The question for this is:
- Are there parts or sections that exist in several use case sequence diagrams (and always remain the same)?
Verify the View---Is Everything Correct?
Use case diagrams, as well as use case sequence diagrams, have to be verified with the aid of knowledge carriers. Ideally, knowledge carriers can read and understand the diagrams themselves (which is not that difficult, since our book has reading instructions for every view). Then, the knowledge carriers are in a position to answer the question about completeness and correctness themselves. If this is not possible, the diagrams have to be read to the knowledge carriers. Then, the diagrams have to be verified for correctness and completeness jointly. Only with this last step is the circle complete and a verified view that reflects a current shared understanding of the IT system created.
The completed use case diagram can be verified with the following checklist:
Checklist 4.2 Verifying Use Case Diagrams in the External View
- Is the use case diagram complete? The use case diagram is complete if there are no further use cases. Anything that users have to do with the IT system is depicted in the form of use cases (if necessary, use cases can be spread out into several diagrams).
- Are all use cases correct? Use cases are correct if they describe a use case of the IT system and comply with the definition of a use case.
- Is the degree of detail appropriate? The degree of detail of the business use cases should meet the following requirements: A use case represents a behaviorally coherent interaction sequence. A use case is carried out by a single actor. A use case represents a functionality that is tangible and that yields a relevant result.
- Generally, a use case is carried out completely.
- Are the use cases named appropriately? The name of each use case should describe the activity that is executed in the IT system.
- Are the actors correct? The actors in the use case diagram represent roles that someone (e.g., a person) or something (e.g., another system) takes up in an interaction with the IT system.
Completed use case sequence diagrams can be verified with the following checklist:
Checklist 4.3 Verifying Use Case Sequence Diagrams in the External View
- Are the use case sequence diagrams completely present? Every use case should have a sequence diagram that describes the possible flows of the use case.
- Are the use case sequence diagrams correct? Each use case sequence diagram should contain only one object that represents the IT system and be made up exclusively of query events and mutation events.
Read next
Structural View []{.fa .fa-arrow-right}{.btn .btn-primary rel=“next”}
Return
[]{.fa .fa-arrow-left} Use Case Sequence Diagram{.btn .btn-default rel=“prev”}
Computer Science Distilled{.btn .btn-landing-ref .btn-hg .btn-block .btn-secondary style=“font-size: 16px; position: relative”}
Do you remember anything at all from your computer science class? Quicksort, Graph traversal, Big’O and other stuff? Revise your memories with our new book on Computer Science.
Psst! Did I mention that we’re offering sexy discounts right now?
{width=“250” height=“312” srcset=“/images/content-public/logos/logo-2x.png?id=fee3b4b0a14ba60dc0fe368695d78be9 2x”}{.menu-brand}
- Premium Stuff
- Design Patterns
- AntiPatterns
- Refactoring
- Code Smells
- Refactoring techniques
- Composing Methods
- Moving Features between Objects
- Organizing Data
- Self Encapsulate Field
- Replace Data Value with Object
- Change Value to Reference
- Change Reference to Value
- Replace Array with Object
- Duplicate Observed Data
- Change Unidirectional Association to Bidirectional
- Change Bidirectional Association to Unidirectional
- Replace Magic Number with Symbolic Constant
- Encapsulate Field
- Encapsulate Collection
- Replace Type Code with Class
- Replace Type Code with Subclasses
- Strategy
- Replace Subclass with Fields
- Simplifying Conditional Expressions
- Simplifying Method
Calls
- Rename Method
- Add Parameter
- Remove Parameter
- Separate Query from Modifier
- Parameterize Method
- Replace Parameter with Explicit Methods
- Preserve Whole Object
- Replace Parameter with Method Call
- Introduce Parameter Object
- Remove Setting Method
- Hide Method
- Replace Constructor with Factory Method
- Replace Error Code with Exception
- Replace Exception with Test
- Dealing with Generalisation
- UML
- Introduction
- Basic Principles and Background
- Modeling Business Systems
- Business Processes and Business Systems
- One Model---Two Views
- External View
- The Elements of a View
- Use Case Diagrams
- Constructing Use Case Diagrams
- Activity Diagrams
- Constructing Activity Diagrams
- Sequence Diagrams
- Constructing Sequence Diagrams
- High-Level Sequence Diagrams
- Sequence Diagrams for Scenarios of Business Use Cases
- Internal View
- Package Diagram
- Constructing Package Diagrams
- Class Diagram
- Constructing Class Diagrams
- Activity Diagram
- Modeling IT Systems
- External View
- The User View or “I don’t care how it works, as long as it works.”
- The Elements of a View
- Use Case Diagram
- Query Events and Mutation Events
- Use Case Sequence Diagram
- Constructing the External View
- Structural View
- Objects and Classes
- Generalization, Specialization, and Inheritance
- Static and Dynamic Business Rules
- Elements of the View
- Class Diagram
- Constructing Class Diagrams
- The Behavioral View
- The Life of an Object
- The Elements of the View
- Statechart Diagram
- Constructing Statechart Diagrams
- Interaction View
- Seeing What Happens Inside the IT System
- Elements of the View
- Communication Diagram
- Sequence Diagram
- Constructing Communication Diagrams
- Constructing Sequence Diagrams
- Modeling for System
Integration
- Terminology of System Integration
- Messages in UML
- One Model---Two Views
- Process View
- The Business System Model as Foundation
- Elements of the View
- Activity Diagrams
- Sequence Diagram
- Constructing Diagrams in the Process View
- The Static View
- Elements of the View
- Class Diagram
- Constructing Class Diagrams
- Transforming Data from the IT System to the Message “passenger list”
- Transformation of UML Messages into Various Standard Formats
Log in Contact us{.userecho-public rel=“nofollow”}
{srcset=“/images/content-public/logos/logo-min-xs-2x.png?id=34fc05750336c33b7815e231a0f227df 2x”}{.navigation-brand}
Shop Now!{.btn .btn-md .btn-primary .btn-featured}
-
[Contact us]{.caption .d-none .d-xl-inline-block}{.userecho-private rel=“nofollow”}
-
Forum{.userecho-public rel=“nofollow”}
-
Contact us{.userecho-private rel=“nofollow”}
© 2007-2023 SourceMaking.com[ / ]{.d-none .d-md-inline}
All rights reserved.