1. Trang chủ
  2. » Kinh Doanh - Tiếp Thị

Systems analysis and design methods 7th whitten and benley chapter 06

100 271 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 100
Dung lượng 0,95 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Process ModelingAn Introduction to System Modeling  System Models understand those systems, or for proposed systems as a way to document business requirements or technical designs.. Pr

Trang 1

Process Modeling

Introduction

The chapter will address the following questions:

logical and physical system models?

they stored?

interfaces with its environment?

Trang 2

Process Modeling

Introduction

The chapter will address the following questions:

functional decomposition diagram?

diagrams into a system diagram?

elementary data flows and processes in terms of data structures and procedural logic (Structured English and decision tables), respectively?

Trang 3

Process Modeling

An Introduction to System

Modeling

System Models

problems

a thousand words, most system models are pictorial representations of reality

Trang 4

Process Modeling

An Introduction to System

Modeling

System Models

understand those systems, or for proposed systems as a way to document business requirements or technical designs

Logical models show what a system ‘is’ or ‘does’ They are

implementation-independent; that is, they depict the system independent of any technical implementation As such, logical models

illustrate the essence of the system Popular synonyms include

essential model, conceptual model, and business model.

Physical models show not only what a system ‘is’ or ‘does’, but also

how the system is physically and technically implemented They are implementation-dependent because they reflect technology choices, and the limitations of those technology choices Synonyms include

implementation model and technical model

Trang 5

Process Modeling

An Introduction to System

Modeling

System Models

business and technical concerns

requirements

Trang 6

Process Modeling

An Introduction to System

Modeling

System Models

models for the following reasons:

current system is implemented or the way that any one person thinks the system might be implemented

requirements because we are too preoccupied with technical details

non-technical or less technical languages

Trang 7

Process Modeling

An Introduction to System

Modeling

Process modeling is a technique for organizing and documenting

the structure and flow of data through a system’s PROCESSES and/or the logic, policies, and procedures to be implemented by a system’s PROCESSES

methods

(DFDs).

through a system and the work or processing performed by that system Synonyms include bubble chart, transformation graph, and

Trang 8

FOCUS ON SYSTEM DATA

System Context

Context Diagram

FOCUS ON SYSTEM INTERFACES

Software (and Hardware) Technology

Interface Technology Networking

Telchnology

FOCUS ON SYSTEM GEOGRAPHY

Study Phase (establish system improvement objectives)

Definition Phase (establish and prioritize business system requirements)

Survey Phase (establish scope and project plan)

Cancellations Services

O rder Management System

Customer

Accounts

R eceivable Database

Warehouse

Ba nk

O rder P icking

O rder Credit

Credit Voucher

C heck credit

Validate

c usto mer Validate pro ducts

v alid o rder

o rder witho ut valid

c usto mer

credit

o rder w ith valid pro ducts appro ved o rder

quantity

i n sto ck

appro ved

o rder rejected o rder

pric es picking ticket

Reverse Engineering (optional)

Trang 9

Process Modeling

Reconcile Account Balances

Pay

a Bill

Withdraw Funds from

an Account

Deposit Funds into an Account

Bank

Creditor

Employer Bank

Monthly Account Statements

Account Transactions

Account Balance

Transaction

Prior Monthly Statement

New or Modified Monthly Statement

Modified Balance

Pay Withdraw or transfer

Deposit

Payment

Modified Balance Current Balance

Trang 10

Process Modeling

An Introduction to System

Modeling

System Models

The rounded rectangles represent processes or work to be done

The squares represent external agents – the boundary of the

system

The open-ended boxes represent data stores, sometimes called

files or databases, and correspond to all instances of a single entity

in a data model

The arrows represent data flows, or inputs and outputs, to and from

the processes.

Trang 11

Process Modeling

An Introduction to System

Modeling

 Data Flow Diagrams Versus Flowcharts

 Processes on a data flow diagram can operate in parallel

Processes on flowcharts can only execute one at a time

 Data flow diagrams show the flow of data through the system

• Their arrows represent paths down which data can flow Looping

and branching are not typically shown.

 Flowcharts show the sequence of processes or operations in an algorithm or program

• Their arrows represent pointers to the next process or operation

This may include looping and branching.

 Data flow diagrams can show processes that have dramatically

Trang 12

Process Modeling

System Concepts for Process

Modeling

What is Systems Thinking?

Systems thinking is the application of formal systems theory and

concepts to systems problem solving

are organized, and how they work

useful real-world systems

Trang 13

outputs, and the system itself – viewed a process

that boundary

Trang 14

Process Modeling

The System's Environment

(constantly changing)

The System Process

Feeback and Control Loop

input

Trang 15

Process Modeling

System Concepts for Process

Modeling

Process Concepts

represent a process

• The Demarco/Yourdon notation uses a circle.

• The SSADM/IDEF0 notation uses a rectangle

A process is work performed on, or in response to, incoming data

flows or conditions A synonym is transform.

Process name

Process name

(the Gane & Sarson shape;

used throughout this book)

(the DeMarco & Yourdon shape)

Process name

(the SSADM & IDEF0 shape)

Trang 16

 What do you do when a complex system is too difficult to fully

understand when viewed as a whole (meaning, as a single

process)?

• In systems analysis we separate a system into its component

subsystems, which in turn are decomposed into smaller subsystems, until such a time as we have identified manageable subsets of the overall system.

This technique is called decomposition.

component subsystems, processes, and subprocesses Each

‘level’ of abstraction reveals more or less detail (as desired)

about the overall system or a subset of that system.

Trang 17

Process Modeling

0 The System

Task 1.1.1 Task 1.1.2

Task 1.2.2 Task 1.2.1

2 Another Function of the System

Task 2.2.1

Task 2.2.3

Task 2.2.2

Trang 18

Process Modeling

System Concepts for Process

Modeling

Process Concepts

decomposition

A decomposition diagram, also called a hierarchy chart, shows

the top down functional decomposition and structure of a system.

more detailed processes models, namely, data flow diagrams

Trang 19

Process Modeling

System Concepts for Process

Modeling

Process Concepts

Each process in a decomposition diagram is either a parent

process, a child process (of a parent), or both

A parent must have two or more children – a single child does not

make sense since that would not reveal any additional detail about the system

• In most decomposition diagramming standards, a child may have only one parent

• A child of one parent may, of course, be the parent of its own

children.

Trang 20

Process Modeling

0 The System

1

A Function

2 Another Function

1.1

Activity of the

Function

1.2 Another Activity

of the Function

Task 1.2.2

Task 2.1.1 Task 1.1.1

Task 1.1.2

Task 1.1.3

Task 1.2.1

2.2 Another Activity

of this Function

2.1 Acivity of this Function

Trang 21

Process Modeling

System Concepts for Process

Modeling

Process Concepts

no matter how you implement the system

physical processes that may include:

• work performed by people

• work performed by robots or machines

• work performed by computer software

process is in the decomposition diagram/data flow diagram and type of process depicted

Trang 22

Process Modeling

System Concepts for Process

Modeling

Process Concepts

and elementary processes

A function is a set of related and on-going activities of the

business A function has no start or end – it just continuously performs its work as needed

– Each of these functions may consist of dozens, or hundreds of

more discrete processes to do support specific activities and tasks.

– Functions serve to group the logically related activities and

tasks.

– Functions are named with nouns that reflect the entire function

Trang 23

Process Modeling

System Concepts for Process

Modeling

elementary processes.

An event is triggered by a discrete input, and is completed when the process has responded with appropriate outputs Events are

sometimes called transactions.

by its inputs and outputs.

Trang 24

Process Modeling

System Concepts for Process

Modeling

Process Concepts

 Logical Processes and Conventions (continued)

 There are three types of logical processes: functions, events, and

elementary processes.

• A event process can be further decomposed into elementary processes that illustrate in detail how the system must respond to an event.

required to complete the response to an event In other words, they are the lowest level of detail depicted in a process model A

common synonym is primitive process.

– Elementary processes should be named with a strong action verb followed by an object clause that describes what the work

is performed on (or for)

Trang 25

Process Modeling

System Concepts for Process

Modeling

than move or route data, thus leaving the data unchanged.

Perform computations (e.g., calculate grade point average)

Make decisions (determine availability of ordered products)

Sort, filter or otherwise summarize data (identify overdue invoices)

Organize data into useful information (e.g., generate a report or

answer a question)

Trigger other processes (e.g., turn on the furnace or instruct a robot)

Use stored data (create, read, update or delete a record)

Trang 26

Process Modeling

System Concepts for Process

Modeling

Process Concepts

processes (as illustrated in the following slide):

A black hole is when a process has inputs but no outputs Data

enters the process and then disappears

A miracle is when a process has outputs but no input

A gray hole is when the inputs of a process are insufficient to

produce the output (most common)

Trang 27

Process Modeling

3.1.2 Create a new member account

3.1.1 Generate an employee bank statement

3.1.3 Freeze member account number

Accounts Receivable Department

Frozen account notification

Employee address

Bank statement Membership

application

Trang 28

effective tools for identifying processes, but they are not good at showing the logic inside those processes.

processes on a data flow diagram

advantages of natural English with the rigor of programming logic tools.

strengths of structured programming and natural English, for specifying the underlying logic of elementary processes on process

models (such as data flow diagrams).

Trang 29

Process Modeling

* Many of us do not write well, and we also tend not to question our writing abilities.

* Many of us are too educated! It’s often difficult for a highly educated person to communicate with an audience that may not have had the same educational opportunities For example, the average college graduate (including most analysts) has a working vocabulary of 10,000 to 20,000 words; on the other hand, the average non-college graduate has a working vocabulary of around 5,000 words.

* Some of us write everything like it was a program If business procedures required such precision, we’d write everything in a programming language.

* Too often, we allow the jargon and acronyms of computing to dominate our language.

* English statements frequently have an excessive or confusing scope How would you carry out this procedure: “If customers walk in the door and they do not want to withdraw money from their account or deposit money to their account or make a loan payment, send them to the trust

department.” Does this mean that the only time you should not send the customer to the trust

department is when he or she wishes to do all three of the transactions? Or does it mean that if a customer does not wish to perform at least one of the three transactions, that customer should not be sent to the trust department?

* We overuse compound sentences Consider the following procedure: “Remove the screws that hold the outlet cover to the wall Remove the outlet cover Disconnect each wire from the plug, but first make sure the power to the outlet has been turned off.” An unwary person might try to disconnect the wires prior to turning off the power!

* Too many words have multiple definitions.

* Too many statements use imprecise adjectives For example, an loan officer asks a teacher to certify that a student is in good academic standing What is good?

* Conditional instructions can be imprecise For example, if we state that “all applicants under the age

of 19 must secure parental permission,” do we mean less than 19, or less than or equal to 19?

* Compound conditions tend to show up in natural English For example, if credit approval is a function of several conditions: credit rating, credit ceiling, annual dollar sales for the customer in question, then different combinations of these factors can result in different decisions As the number

of conditions and possible combinations increases, the procedure becomes more and more tedious and difficult to write.

Trang 30

Process Modeling

Else

Trang 31

Process Modeling

System Concepts for Process

Modeling

Process Concepts

built using the fundamental constructs that have governed structured programming for nearly three decades

A sequence of simple, declarative sentences – one after another

A conditional or decision structure indicate that a process must

perform different actions under well specified conditions

A iteration or repetition structure specifies that a set of actions

should be repeated based on some stated condition There are two variations on this construct.

Trang 32

Process Modeling

System Concepts for Process

Modeling

Process Concepts

• Compound sentences are discouraged because they frequently

create ambiguity

• Each sentence uses strong, action verbs such as GET, FIND,

RECORD, CREATE, READ, UPDATE, DELETE, CALCULATE, WRITE, SORT, MERGE, or anything else recognizable or

understandable to the users

• A formula may be included as part of a sentence (e.g.,

CALCULATE GROSS PAY = HOURS WORKED X HOURLY WAGE.)

Trang 33

Process Modeling

System Concepts for Process

Modeling

Process Concepts

• There are two variations (and a departure) on this construct.

– The IF-THEN-ELSE construct specifies that one set of actions should be taken if a specified condition is ‘true’, but a different set of actions should be specified if the specified condition is false

– The CASE construct is used when there are more than two sets

of actions to choose from

– For logic that based on multiple conditions and combinations

of conditions, decision tables are a far more elegant logic

modeling tool

Trang 34

Process Modeling

System Concepts for Process

Modeling

Process Concepts

• There are two variations on this construct.

– The DO-WHILE construct indicates that certain actions

(usually expressed as one or more sequential and/or

conditional statements) are repeated zero, one, or more times

based on the value of the stated condition

– The REPEAT-UNTIL constructs indicates that certain actions

(again, usually expressed as one or more sequential and/or

conditional statements) are repeated one or more times based

on the value of the stated condition

Trang 35

Process Modeling

System Concepts for Process

Modeling

logic:

used

defined in the project repository as legal values for data attributes.

of constructs and to enhance readability.

Trang 36

… [ A c t i o n n ]

c o n d i t i o n a l a c t i o n s ] X [ S e q u e n c e o f a c t i o n s o r

c o n d i t i o n a l a c t i o n s ] X X [ S e q u e n c e o f a c t i o n s o r

Trang 37

Process Modeling

System Concepts for Process

Modeling

Process Concepts

conditions that are not easily expressed with Structured English

A policy is a set of rules that govern some process in the business.

computer programs if the users and systems analysts can accurately convey those rules to the computer programmer

Trang 38

Process Modeling

System Concepts for Process

Modeling

 Process Logic (continued)

 One way to formalize the specification of policies and other

complex combinations of conditions is by using a decision table.

A decision table is a tabular form of presentation that specifies a set

of conditions and their corresponding actions.

 A decision table consists of three components:

• Condition stubs (the upper rows) describe the conditions or factors

that will affect the decision or policy.

• Action stubs (the lower rows) describe, in the form of statements, the possible policy actions or decisions.

• Rules (the columns) describe which actions are to be taken under a

specific combination of conditions.

Trang 39

Process Modeling

A SIMPLE POLICY STATEMENT

CHECK CASHING IDENTIFICATION CARD

A customer with check cashing privileges is entitled to cash personal checks of up to $75.00 and payroll checks of from

companies pre-approved by LMART This card is issued in

accordance with the terms and conditions of the application and is subject to change without notice This card is the property of

LMART and shall be forfeited upon request of LMART.

SIGNATURE Charles C Parker, Jr.

THE EQUIVALENT POLICY DECISION TABLE

Conditions and Actions Rule 1 Rule 2 Rule 3 Rule 5

C2: Check amount less than or equal to $75.00 yes doesn’t

matter no

doesn’t matter

C3: Company accredited by LMART doesn’t

matter yes

doesn’t matter no

Trang 40

between two processes inside a system an relationship between

a system and its environment, or between two processes is

communication.

A data flow represents an input of data to a process, or the output

of data (or information) from a process A data flow is also used to represent the creation, deletion, or update of data in a file or

database (called a data store on the DFD).

• A data flow is depicted as a solid-line with arrow

Ngày đăng: 10/01/2018, 16:09

TỪ KHÓA LIÊN QUAN