Beruflich Dokumente
Kultur Dokumente
Ms.Nor Alina
Learning Outcome
After studying this chapter, you should be able to :
How to define process modeling Understand about function decomposition. Understand about ERD Understand about DFD Understand about procedure modeling.
Process Modeling
Process modelling involves graphically representing the functions, or processes. All functions / processes which capture, manipulate, store and distributed data between a system and its environment and between components within system. Several different tools have been developed for process modelling.
The analysis team enter requirements structuring with an abundance of information gathered during requirements determination.
Context data flow diagram (DFD) DFDs of current physical system (adequate detail only) DFDs of current logical system DFDs of new logical system Thorough descriptions of each DFD component.
S.S.A.D.M.
S.S.A.D.M. - Structured Systems Analysis and Design Method Uses different techniques to model a system Data Flow Diagrams Entity Relational Model (Logical Data Stores) Normalisation
data flow
process
external entity
Sources/Sinks
(external entities)
Any class of people, an organization, or another system which exists outside the system you are studying. Form the boundaries of the system. The system and external entities exchange data in the form of data flows. Must be named, titles preferred to names of individuals - use a noun
source/ sink
Data Flows
data in motion marks movement of data through the system - a pipeline to carry data connects the processes, external entities and data stores Unidirectional originate OR end at a process (or both) name as specifically as possible reflect the composition of the data - a noun do not show control flow! Control flow is easy to identify- a signal with only one byte - (on/off). HINT: if you can't name it: either it's control flow, doesn't exist or you need to get more information!
Processes
transform incoming data flows into outgoing data flows represent with a bubble or rounded square name with a strong VERB/OBJECT combination; examples: create_exception_report validate_input_characters calculate_discount
process
Data Stores
data at rest represents holding areas for collection of data, processes add or retrieve data from these stores name using a noun (do not use file) only processes are connected to data stores show net flow of data between data store and process. For instance, when access a DBMS, show only the result flow, not the request
data store
Levelling
DFDs are expanded or decomposed into levels. Separating each process into sub processes Uncovers more and more detail
Conventions
- Balancing - Process at lower level should have identical data flows if they flow out of a process - Modelling Data Stores - Only use DATA STORES used within this process on the diagram - Numbering 1 - 1.1 - 1.1.1 1.2 - 1.2.1 - Labels
Balancing DFDs
conserve data from level to level inputs and outputs on the higher level must appears somewhere on the lower level
Diagramming A System
multiple DFDs are required to represent a system DFDs are created at increasing levels of detail
Functional Decomposition
similar to a series of more detailed maps iterative process of breaking the description of a system into finer and finer detail to create a set of charts in which one process on a given chart is explained in greater detail on another chart referred to as exploding, partitioning, or leveling must use your judgment to decide what goes on each level show error and exception handling on lower levels (if at all)
The Elements
The four main elements of DFDs notation y Data Flows, with a label to indicate what data is flowing y Processes, that handle the data y Data stores, within the system (diary, filing cabinet or computer file) y Outside entities, outside sources of data
MD
Name of Store
Outside Entity
Is anything outside the system that is of interest to the system. Can be a person, a company or another system.
Customer a
Outside entity shows the Name and a lowercase alpha character is used to uniquely identify it.
Customer a
If an outside entity is repeated for the purpose of neat layout a line is added across the top.
Data Flow
Is shown by a line with an arrowhead, indicating the direction of the flow of data. Each data flow should be named to indicate what data is being passed. Nouns or adjectives only no verbs are permitted.
Rules
Sequence not important - getting the Process correct is
Context or Level 0 - Identifies the system/ boundary/External Links Level 1 - Overview of function Level 2 - Breakdown to Understand Hard to know where to stop Rule of Thumb If there are more than 8 data flows break it Process of Identifying major Processes
Advanced Rules
Composite data flow on one level can be split into its component data flows on the next level - but new data cannot be added and all data in the composite must be included in the sub-flows The inputs to a process must be sufficient to produce the outputs. Lowest level DFDs may add new data flows to represent exception handling, i.e., error messages May repeat data stores or sources/sink to avoid crossing lines
T h e P r o c e d u r e fo r C o n s tr u c tin g D F D s
y y D r f t D r r rt y y y D r Id e n tif r f t t t t t D i r e s y s te m C u rre n t e s s e s in t rr t i t t t fl it ti i r t r
C o m p le te t e le v e l ys i l D F D
T h e D o c u m e n t F lo w
T s b s h e itu e s u c
D ia g r a m
Production Planning
Production Plan Delivery Note
Supplier
Purchase Order Supplier Details Update Form Delivery Note Material Requirements List
Stock Control
Purchasing
Bill of Materials
Factory
Design
Context Diagram
defines the scope of the system by identifying the system boundary contains: one process (which represents the entire system) all sources/sinks (external entities) data flows linking the process to the sources and sinks (external entities)
student
course selections
schedule
Registration System
Registration details
business office
b Supplier
Delivery Note
e Design
Bill of Materials
c Purchasing
d Factory
A s p A s p
l y r l y r
l s o l s o
d a ta te m c e s s d a ta te m c e s s
fl m . fl m .
o w s g o in g in to th e u s t b e r e c e iv e d b y
o w s g o in g o u t o f th e u s t b e g e n e r a te d b y
T h e fir s t ta s k is th e r e fo r e to id e n tify th e s e p r o c e s s e s :
D ra
e e x te r a l e titie s a a ta sto r e s.
a Production Planning
Stock clerk
M1
Maintain planned call-off
Bill of materials
b Supplier
M2
Stock cards
c Factory
3
d Purchasing
each lower level shows greater and greater detail follow numbering convention
Additional Guidelines
the inputs to a process are different from the outputs of that process objects in a set of DFDs have unique names do not change data flow names on lower levels unless you are decomposing a data flow into component pieces. never explode a single process into another single process. If you cannot partition the process, then the lower level DFD is not needed. expect to iterate, put down the DFD and go back to it a few times to create something satisfactory.
Quality Guidelines
Completeness
all components included & in project dictionary
Consistency
between levels: balancing, leveling
Timing considerations
assume system never starts and never stops
Iterative nature
revisions are common
Level-0 Diagram
describes the overall processing of the system show one process for each major processing step or functional requirement data flows from the context appear on system diagram also (level balancing) can show a single data store to represent all data in aggregate at this level can draw duplicate sources, sinks and data stores to increase legibility
L evel 1
y s ic a l D F D -
o m p le te
ill f
t ri ls
t ck c r s
suppl
ts
ts
H a ir d r e s s in g a lo n e v e l h y s ic a l D F D
1
Receptionist Register Appointment Appointment details New client details
M2 Appointment diary
Confirmation of arrival
e jk
&
D e e k s )
Hairdresser/Rcptnst
Conduct appointment
Process 3 Level 2
3 Client a Clie a Hair Details 3.2 Hairdresser Hair/Reception
3.1
Hairdresser
Conduct Appointment
Complete Appointment
Level 2
2 .2
Level 3
Level 4
2 .1 .1 E le m e n ta r y pro c e ss d e s cr ip tio n s. D e ci si o n tr e e s D e ci si o n ta b l e S tr u c tu r e d E n g li s h
3 P ro c e ss M an
2 .3 Sub P ro c e ss
process stuff
1. Black Hole
process stuff
2. Its a Miracle
data store
Entity
A person, place, object, event or concept in the user environment about which the organization wishes to maintain data Represented by a rectangle in E-R diagrams An entity is a business object that represents a group, or category of data. 1 Do we know a similar concept?
Entity Type
A collection of entities that share common properties or characteristics
Attribute
A named property or characteristic of an entity that is of interest to an organization An attribute is a sub-group of information within an entity. 1 Do we know a similar concept?
Examples
Identify a few entity types, instances, attributes and candidate keys for:
DePaul Campus Connect Registration System Illinois Bureau of Motor Vehicles System Amazon.com Product Information System
Result
A better design that is scalable and easier to maintain
Identifier
A candidate key that has been selected as the unique identifying characteristic for an entity type Selection rules for an identifier 1. Choose a candidate key that will not change its value 2. Choose a candidate key that will never be null 3. Avoid using intelligent keys 4. Consider substituting single value surrogate keys for large composite keys
Relationship
An association between the instances of one or more entity types that is of interest to the organization Association indicates that an event has occurred or that there is a natural link between entity types Relationships are always labeled with verb phrases
Cardinality
The number of instances of entity B that can be associated with each instance of entity A Minimum Cardinality
The minimum number of instances of entity B that may be associated with each instance of entity A This is also called modality .
Maximum Cardinality
The maximum number of instances of entity B that may be associated with each instance of entity A
Mandatory, Many-to-Many
INSTRUCTOR
STUDENT
INSTRUCTOR
STUDENT
Optional, Many-to-Many
DEPARTMENT
STUDENT
DEPARTMENT
STUDENT
Optional/Mandatory, Many-to-Many
INSTRUCTOR
SKILL
INSTRUCTOR
SKILL
Optional/Mandatory, One-to-Many
PRODUCT
VENDOR
PRODUCT
VENDOR
Mandatory, One-to-One
AUTOMOBILE
ENGINE
AUTOMOBILE
ENGINE
Recursive
EMPLOYEE supervises
is supervised by
SALES ORDERS
INV. ITEMS
SALES ORDERS
ORDER ITEMS
INV. ITEMS
SALES ORDERS
ORDER ITEMS
INV. ITEMS
Q&A