Process Specification Adn Structured Decisions
Process Specification Adn Structured Decisions
Process Specifications
and Structured Decisions
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-2
Logic of Decisions
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-3
Major Topics
• Process specifications
• Business rules
• Structured English
• Decision tables
• Decision trees
• Horizontal balancing
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-4
Process Specifications
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-5
Goals of Producing Process
Specifications
• Reduce process ambiguity.
• Obtain a precise description of what is
accomplished.
• Validate the system design.
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-6
Process Specifications Are Not
Created
• Processes that represent physical input
and/or output
• Processes that represent simple data
validation
• Processes that use prewritten code
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-7
How Process Specifications Relate to the
Data Flow Diagram (Figure 9.1)
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-8
Process Specification Format
Information
• The process number
• The process name
• Description of what the process accomplishes
• A list of input data flow
• Output data flows
• Type of process
• Uses prewritten code
• Process logic description
• Logic method reference
• List any unresolved issues
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-9
The Process Number
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-10
The Process Name
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-11
Description of What the Process
Accomplishes
• Example:
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-12
List of Input Data Flow
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-13
Output Data Flows
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-14
Type of Process
• Batch
• Online
• Require screen designs
• Manual
• Should have well-defined procedures for
employees performing the process tasks
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-15
Uses Prewritten Code
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-16
Process Logic Description
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-17
Common Business Rule Formats
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-18
Logic Method Reference
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-19
List Any Unresolved Issues
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-20
An Example of a Completed Process Specification Form
for Determining Whether an Item Is Available
(Figure 9.2)
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-21
Structured English
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-22
Writing Structured English
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-23
Examples of Logic Expressed in a Sequential
Structure, a Decision Structure, a Case
Structure, and an Iteration (Figure 9.3)
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-24
Advantages of Structured
English
• Clarifying the logic and relationships
found in human languages
• An effective communication tool, it can
be taught to and understood by users in
the organization
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-25
Data Dictionary and Process
Specification
• The data dictionary is a starting point
for creating structured English:
• Sequence—a simple sequence of
statements MOVE, ADD, and SUBTRACT
• Selection—[] entries become
IF…THEN...ELSE statements
• Iteration { } entries become DO WHILE,
DO UNTIL, or PERFORM UNTIL.
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-26
Decision Tables
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-27
Standard Format Used for Presenting
a Decision Table (Figure 9.7)
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-28
Constructing a Decision Table for Deciding Which
Catalog to Send to Customers Who Order Only from
Selected Catalogs (Figure 9.9)
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-29
Developing Decision Tables
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-30
Checking for Completeness and
Accuracy
• Four main problems:
• Incompleteness
• Impossible situations
• Contradictions
• Redundancy
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-31
Checking the Decision Table for Inadvertent
Contradictions and Redundancy Is Important
(Figure 9.13)
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-32
Decision Table Advantages
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-33
Decision Trees
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-34
Drawing Decision Trees
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-35
Drawing a Decision Tree to Show the Noncash
Purchase Approval Actions for a Department
Store (Figure 9.14)
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-36
Decision Tree Advantages
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-37
Selecting a Structured Decision
Analysis Technique
• Use structured English when there are many
repetitious actions or when communication to end
users is important.
• Use decision tables when a complex combination of
conditions, actions, and rules are found or you
require a method that effectively avoids impossible
situations, redundancies, and contradictions.
• Use decision trees when the sequence of conditions
and actions is critical or when not every condition is
relevant to every action (the branches are different).
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-38
Summary
• Process specifications
• Decision analysis
• Structured English
• Logic is expressed in sequential structures,
decision structures, case structures, or
iterations.
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-39
Summary (Continued)
• Decision tables
• Four quadrants are used to:
©Describe the conditions.
©Identify possible decision alternatives.
©Indicate which actions should be performed.
©Describe the actions.
• Decision trees
• Consist of nodes and branches
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-40
Summary (Continued)
Kendall & Kendall Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall 9-41
All rights reserved. No part of this publication may be reproduced, stored in a
retrieval system, or transmitted, in any form or by any means, electronic,
mechanical, photocopying, recording, or otherwise, without the prior written
permission of the publisher. Printed in the United States of America.
9-42