Ch04-Business Process and Functional Modeling
Ch04-Business Process and Functional Modeling
Chapter 4:
Business Process and
Functional Modeling
IS 1235
IS Department 2
Introduction
• Now begin the process of turning the requirements into
functional models
• Models are logical; i.e., independent of how they are
implemented (manual or computerized)
• Develop use-cases from the requirements
• Use-case: how a system interacts with its environment
• Includes a diagram and a description to depict the discrete activities
that the users perform
• Develop activity diagrams from the use-cases
• These model the business processes or how a business operates
• Used to illustrate the movement of objects (data) between activities
IS Department 3
Use Cases
• The primary driver for all UML diagramming techniques
• Depicts activities performed by the users
• Describe basic functions of the system:
• What the user can do
• How the system responds
• Use cases are building blocks for continued design
activities
• Each use-case describes 1 and only 1 function
IS Department 4
Functional Modeling
IS Department 5
Elements of Use-Case Diagrams
IS Department 6
Generalization
registration
non-graduate graduate
registration registration
IS Department 7
Include & Extend
• In <<include>> association, the base case cannot exist
alone. It is always called with the supplier use case
<<include>>
base included
<<extend>>
base extending
IS Department 8
Identifying Major Use-Cases
• Review the requirements definition
• Identify the subject’s boundaries
• Identify the primary actors and their goals
• Identify the business processes and major use-cases
• Carefully review the current set of use-cases
• Split or combine some to create the right size
• Identify additional use-cases
IS Department 9
Create a Use-Case Diagram
IS Department 10
Example Use-Case
IS Department 11
Example Use-Case
Room Reservation System
IS Department 12
In class Practice (Scenario)
Create a use case diagram for the following scenario
Suppose we have an appointment system in which:
• The patient can make a new appointment: if the patient is new,
the patient should enter his information to crate file for him. If
he is an old patient, he may need to update his information if
necessary.
• The patient may need to make some payment arrangement
when making the appointment.
• The doctor need to provide the available time on his schedule.
• The management are responsible to produce the necessary
information related to doctor schedule.
• The final schedule for each doctor is updated baseon the
information provided by the management and the availability
recoded by the doctor. IS Department 13
In class Practice (solution)
IS Department 14
In class Practice (solution)
• Appointment system
IS Department 15
In class Practice (Detailed)
IS Department 16
Case Study -1 (Library)
IS Department 17
IS Department 18
Solution...
IS Department 19
Functional Modeling
IS Department 20
Types of Use Cases
IS Department 21
Elements of a Use Case
Description
• Overview:
• Name, ID Number, Type, Primary Actor, Brief Description, Importance
Level (e.g. low, medium, or high), Stakeholder(s), Trigger(s), Trigger
type (external or temporal)
• Relationships:
• Association: Communication between the use case and the actors
• Extend: Extends the functionality of a use case
• Include: Includes another use case
• Generalization: Allows use cases to support inheritance
• Flow of events
• Normal flow: the usual set of activities
• Sub-flows: decomposed normal flows to simplify the use-case
• Alternate or exceptional flows: those not considered the norm
• Optional characteristics (complexity, time, etc.)
IS Department 22
Use Case description Writing
Guidelines
1. Write in the form of subject-verb-direct object
2. Make sure it is clear who the initiator of the step is
3. Write from independent observer’s perspective
4. Write at about the same level of abstraction
5. Ensure the use case has a sensible set of steps
6. Apply the KISS principle liberally.
7. Write repeating instructions after the set of steps to
be repeated
IS Department 23
Creating Use-Case Descriptions
1. Pick a high priority use-case and create an overview:
• List the primary actor
• Determine its type (overview or detail; essential or real)
• List all stakeholders and their interests
• Determine the level of importance of the use-case
• Briefly describe the use-case
• List what triggers the use-case
• List its relationship to other use-cases
IS Department 24
Creating Use-Case Descriptions (cont.)
IS Department 25
Example Use-Case Description
IS Department 26
Example Use-Case Description
IS Department 27
Functional Modeling
Activity Diagram
IS Department 28
BPM With Activity Diagrams
• Business processes consist of a number of activities
• Activity diagrams depict the sequence of these activities
• Diagrams are abstract and describe processes in general
• They model behavior independent of objects
• Can be used for any type of process
IS Department 29
Activity Diagram Symbols
IS Department 30
Activity Diagram Symbols (Cont.)
IS Department 31
Elements of an Activity Diagram
• Actions & Activities
• Something performed for some specific business reason
• Named with a verb and a noun (e.g., Get Patient Information)
• Activities can be further sub-divided; actions cannot
• Object Nodes: represent the flow of information from one
activity to another
Swimlanes
• Used to assign responsibility to objects or
individuals who actually perform the activity
• Represents a separation of roles among objects
• Can be drawn horizontally or vertically
IS Department 35
IS Department 36
Example of Activity Diagram
• Activity Diagram for ATM Authorization
[Yes]
Select other
service
IS Department 37
Sample Activity Diagram
IS Department 38
Example of Activity Diagram
IS Department 39
Example of Activity Diagram with Swimlanes
student Course Admin teacher
Schedule course
record grades
close course
IS Department 40
In Class Practice
• Draw the Activity Diagram for the process of registering
course.
IS Department 41
In Class Practice
Receive course
registration request
[has prereques t]
[full]
[dont have prereques t]
complete
registration
IS Department 42
Guidelines for Activity Diagrams
IS Department 43
Creating an Activity Diagram
IS Department 44
Verifying & Validating
a Use-Case
• Use-cases must be verified and validated before
beginning structural and behavioral modeling
• Verification and Validation through Walkthroughs:
• Perform a review of the models and diagrams created so far
• Performed by individuals from the development team and the
client (very interactive)
• Facilitator: schedule and set up the meeting
• Presenter: the one who is responsible for the specific representation
being reviewed
• Recorder (scribe) to take notes and especially to document errors
IS Department 45
Rules for Verification & Validation to ensure that the
three functional modeling are consistent among
themselves:
1. Ensure one recorded event in the flows of the use-case description for
each action/activity on the activity diagram
2. All objects in an activity diagram must be mentioned in an event of the
use-case description
3. The sequence of the use-case description should match the sequence in
the activity diagram
4. One and only one description for each use-case
5. All actors listed in a use-case description must be shown on the use-
case diagram
6. Stakeholders listed in the use-case description may be shown on the
use-case diagram (check local policy)
7. All relationships in the use-case description must be depicted on the use-
case diagram
8. All diagram-specific rules must be enforced
IS Department 46
Summary
IS Department 47