Logic Midterms 1
Logic Midterms 1
MOD 1 LESSON 1: WHY DECISION MODEL? measurement and control, sensors, wireless applications, systems
integration, test measurement, and many, many more.
DECISION MODEL
o An intellectual template for perceiving, organizing, and managing
the business logic behind a business decision
o Model that impacts not just technology trends, but also business
management practices
o Brings to the world of business rules a well-defined structure based
on the inherent nature of logic, extended with integrity and
normalization principles
o It is similar in concept to what the Relational Model brings to the
world of data
HOW IT BEGAN
o Inception of computer systems in the early 1950
o Constant expansion of the functionality of computerized business “A big ball of mud is haphazardly structured, sprawling, sloppy,
systems (via applications) duct-tape and bailing wire, spaghetti code jungle. We’ve all seen them.
• Discrete applications These systems show unmistakable signs of unregulated growth, and
• Complex applications repeated, expedient repair. Information is shared promiscuously among
o Before the advent of commercially available computers, a business distant elements of the system, often to the point where nearly all the
carried out its processes through human effort guided by human important information becomes global or duplicated. The overall
thinking and logic. structure of the system may never have been well defined. If it was, it
o Critical processes were documented as a set of tasks and may have eroded beyond recognition” (Foote and Yoder, 1999)
important check- points, along with guidance for carrying out
THE ONE DIMENSION LEFT BEHIND
decisions along the way.
o Although it is true that much progress has been made in teasing
o Documentation exists today for many processes that are partly or
out the distinct aspects buried in the big ball of mud, there has not
wholly carried out by humans
been widespread success in teasing out the business logic so that
o Documentation together with training informs the processes and
it can be developed and modified independently
evolves them over time
o In the age of commercial computer processing, important business
BUSINESS LOGIC
processes, or parts thereof, have become ideal targets for
o The very heart of automated business systems
automation
o Simply a set of business rules represented as atomic elements of
conditions leading to conclusions
o Represents business thinking about the way important business
decisions are made
o Represents the “rules of the business” that operate perhaps
thousands of times a day in service to customers and partners
o The sequences of steps along with the business logic for making o Present and the future of the company
decisions behind those steps have been translated into program
code. WHY SEPARATE BUSINESS LOGIC?
o Businesses have gained a great deal by automating business o Many “rules of the business” are buried in program code or in
processes. people’s heads
o The ability to process transactions quickly, in greater volume, and o Sometimes, the business rules executing in program code are not
with more consistency has made all the difference in the world to what the business thought they were or even what the business
most businesses. needs them to be.
o The gains have been enormous and, consequently, the wave of o Important consideration in implementing change and delivering
business automation has grown beyond initial expectations. enterprise agility.
o So, too, have the sophistication of technology and the way o However, today they operate as a silent, invisible business asset
automated systems are designed. rather than one worthy of being managed separately from other
o However, a price has been paid for these great advances. dimensions.
o That is, many, if not most, enterprises have lost track of and control o As a result, they remain buried, scattered, and resistant to change.
over the business logic that is embedded in these systems. Even when captured separately from models and requirements, the
o This is a natural result of how the design and development of technology for storing business logic ranges from documents,
automated systems have evolved. spreadsheets, modeling tools, repository tools, and proprietary
software, to home-grown databases.
AUTOMATION o They are managed as a catalog or list of business rule statements,
o In the dictionary it is defines as “the technique of making an tied in one way or another to related deliverables. They are not
apparatus, a process, or a system operate automatically” managed in a common model as data is managed today. The
o the creation and application of technology to monitor and control historic impact of a common model for data is worth contemplating.
the production and delivery of products and services
FROM THE PAST
o the use of technology to perform tasks with where human input is
o DATA - earliest aspects teased out of the ball of mud
minimized
o Recognition that data should be separated from process (late
o encompasses many vital elements, systems, and job functions
1960s and early 1970s)
o Automation provides benefits to virtually all of industry. Some
o Mere separation of data into a list of data elements was not
examples:
sufficient for delivering the anticipated benefits of increased data
• MANUFACTURING - food and pharmaceutical, chemical
sharing and data quality
and petroleum, pulp and paper
o Design approaches still varied and were influenced by proprietary
• TRANSPORTATION - automotive, aerospace, and rail (exclusive) database technology
• UTILITIES - water and wastewater, oil and gas, electric o Separation alone proved to be insufficient – need for a common
power, and telecommunications design approach
• DEFENSE o Adoption of the Relational Model (Codd’s model) along with related
• FACILITY OPERATIONS - security, environmental control, technology and best practices significantly improved the quality of
energy management, safety, and other building automation data stored in database technology
o Automation crosses all functions within industry from
installation, integration, and maintenance to design, THE DECISION MODEL STRUCTURE
procurement, and management. o based on the premise that business logic has its own existence,
o Automation even reaches into the marketing and sales functions of independent of how it is executed, where in the business it is
these industries. executed, and whether or not its execution is implemented in
o Automation involves a very broad range of technologies automated systems
including robotics and expert systems, telemetry and o has a recognizable structure that is not the same as the structure
communications, electro-optics, Cybersecurity, process of other kinds of models
Industry analysts predict significant growth* in the technology areas BUSINESS LOGIC: BUSINESS DERIVES CONCLUSIONS FROM
of Service-Oriented Architecture (SOA), Business Process FACTS
Management (BPM), and Business Decision Management (BDM—also, o First of all, each of these statements is expressed in the way that a
and interchangeably, referred to as Enterprise Decision Management business person might express it. None is stated in terse, forced,
(EDM)). unnatural, or pseudocode format.
Major corporations investing in one or more of these technologies o The expressions are business-friendly and serve as a starting
span all industries. The interest in these areas stems from a growing point. The goal is to discover the intended business logic behind
need to enable business agility, leverage current investments in IT the statements and translate it into a more rigorous form in a
infrastructure, and gain control over IT governance. Decision Model.
Each of these trends promises to deliver supporting infrastructure o In fact, a natural language statement can be generated from the
around an important and proprietary business asset: the business’s Decision Model that is more precise than the raw material from
logic that should drive its operational transactions in the most desirable which it started.
manner. Therefore, a model of such business logic is at the center of all o For now, each of the foregoing statements is, simply, one business
of these emerging areas. Industry analysts, vendors, and practitioners conclusion. That is, each statement comes to a simple or complex
proclaim that such business logic today needs to be separated from conclusion based on facts.
other logic so as to be reusable, changeable, and deployed in EXAMPLES OF BUSINESS LOGIC:
corresponding technology. It needs to be delivered in appropriate 1. A person who has not had any jobs in the past five years is
technology and made available to all business processes and systems considered to have a poor job history.
that need it and across emerging SOAs. However, without a well-formed 2. A person with more than ten jobs in the past five years is
model of business logic, there is little rigor and no solid roadmap for considered to have a poor job history.
achieving this. 3. A person with a poor job history, a large mortgage, and a
significant number of miscellaneous loans is considered very
DECISION MODEL HAS THE POTENTIAL TO BRING ABOUT THE
likely to default on a loan.
FOLLOWING KINDS OF CHANGES:
4. A person with a low credit rating must not be granted an
• IT and business management methodologies that promote
unsecured loan. (conclusion seems like an unconditional
business decisions and corresponding Decision Models to the level
constraint because it defines a situation that must never be true)
of prominent management levers
5. A person’s credit rating is computed according to proprietary
• Commercial automation software that supports decision services
formula. (conclusion is the result of a computation because it
derived from Decision Models provides a specific formula)
• Commercial modeling and requirements software that enable
specification and governance of Decision Models from business to o Regardless, each of the statements still arrives at a conclusion
technology using certain facts as input (conditions) specified by business
leaders.
GATHERING BUSINESS LOGIC INPUT MOD 1 LESSON 3: DECISION MODEL NOTATION AND
o The following statement represents a conclusion reached about the SUPPORTING SOFTWARE TOOLS
likelihood of defaulting on a loan based on certain business facts: DECISION MODEL NOTATION AND SUPPORTING SOFTWARE
• A person who has a poor employment history, a poor TOOLS
mortgage situation, and a high miscellaneous loans o To fully represent the Decision Model and its principles, a Decision
assessment is highly likely to default on a loan. Model notation is needed for at least two different kinds of
diagrams:
CREATING THE DECISION MODEL STRUCTURE • Rule Family table
o The fundamental structural element of a Decision Model is a two-
• Decision Model diagram
dimensional table relating conditions to one—and only one—
o One of the principles, for example, prescribes that a Rule Family
corresponding conclusion.
have only one conclusion column.
o A Rule Family is a two-dimensional structure that represents three
condition columns that are tested to arrive at the conclusion DECISION MODEL DIAGRAM
column.
o Depicts only the Decision Model’s structure and not the detailed
content of its Rule Families
o Begins with an octagonal shape that represents the entire business
decision
o Its shape relates to tasks within business process models and to
steps within use cases, precisely at places in those models where
the business decision is in play
o Business decision shape also connects to:
POPULATING THE DECISION MODEL CONTENT • business objectives
o Do all decision makers agree with these conditions leading to this • business tactics
conclusion? • business requirements
o What exactly is meant by Person Employment History? What are o the Rule Family directly connected to the business decision shape
values other than Poor? is called the Decision Rule Family because its conclusion is the
o What is meant by Person Mortgage Situation? What are its other conclusion sought by the entire Decision Model
possible values?
o What about Person Miscellaneous Loans Assessment? Which RULE FAMILY TABLE
kinds of loans are included and excluded? o A Rule Family table provides a complete view of the content of a
o What is mean by Person Likelihood of Defaulting on a Loan and Rule Family. Clearly, each Rule Pattern in the diagram may
what are its possible values? represent from one to many rows of business logic statements.
Snowden and Boone define four different operative contexts AIRLINE TICKET PRICE DECISION MODEL ADDING FUEL
for business decisions based on the input to them, as follows: SURCHARGE
• The Simple context, where the input consists of “Known
knowns.” All parties share an understanding of the facts required
to make a decision.
• The Complicated context, where the input consists of “Known
unknowns.” This is the domain of experts, where there may be
a need to work in unfamiliar environments. More than one correct
answer may exist for the same input.
• The Complex context, where the input consists of “Unknown
unknowns.” This is when there is incomplete data, and there
may be no correct answer for some or all inputs.
• The Chaotic context, where the input consists of
“Unknowables.”
CASE STUDY
A financial institution is reevaluating its loan approval process,
which is partly automated and partly handled by loan officers. The
system seems to operate well in making most decisions involved in
approving loans except in the area of the possibility of the applicant’s
defaulting on a loan. A disturbing organizational issue is that the
evaluation of an applicant’s likelihood of defaulting on a loan often differs
depending on who the loan officer is, because different loan officers use
different criteria. Another disturbing issue is that the quantity of defaulted
loans over the past six months has significantly increased. CHANGING THE GAME: BPM AND BDM
The institution wants to automate the business decision o The previous lesson showed that business decisions made in the
involving the applicant’s likelihood of defaulting on a loan to enforce simple and complicated operative contexts are likely to serve as
consistency and so that only exceptional situations in this regard require elements of guidance in business processes. Further, when those
immediate handling by a loan officer. Therefore, new objectives are set: business processes are executed in high volume, the business
to decrease by 60% in one year the number of loan applications decisions have a significant economic impact on the enterprise.
evaluated by a loan officer regarding the likelihood of default and to
reduce by 25% in one year the quantity of defaulted loans. BUSINESS PROCESS
TASK o a series of repeatable, defined activities taking place in a planned
sequence by actors (being individuals or systems) within a defined
scope of organization where the tasks add value to a good or a
service for a customer
o Business processes are important; some more than others. A
business designs, implements, manages, monitors, and optimizes
them to obtain advantage. The goal in managing business
processes is to provide customers with outstanding products or
services, or to lower costs. In short, improvement in business
processes aims to perfect business performance.
o A business process is wide in scope, an end-to-end chain, rather
than a functional narrow view. So a business process is less
concerned with the functional departmentalization (functional silos)
of the organization, than with the breadth of business processes
that deliver value to the customer. So, a business process exists
regardless of, and spanning, the functions of the organization. In
this way, the focus is on the value chain of the organization. The
value chain is simply the set of steps by which the business adds
value to the goods or services delivered to customers.
depicts a sequence
of process tasks that
are forced to occur in
a particular sequence
but for which such
sequence is actually
not required
depicts a much
o The Rule Family, by definition, implies no particular sequence simpler business
among the conditions to be tested. The Rule Family in Figure 4.2 process model. The
also indicates via the “?” that there are other possible combinations business process
of conditions to consider. The Rule Family can contain as many model is simplified by
rows as are needed to reach the correct conclusion. For that matter, removing parts of it
it can contain additional columns if other conditions are needed to that can be
determine a person’s credit rating. The Rule Family table also represented in a
contains business logic for the logic not modeled in the business declarative Decision
process models of Option 1 and Option 2. These include the Model.
adjudication of the credit rating for all values of person’s debt and
employment history other than “low” and “good.” Incorporating
these into the business process model rather than in the Decision
Model would have enlarged and added unnecessary complexity THE SECRET OF THE MISSING BUSINESS LOGIC
and unnecessary sequence information to the business process o But then where is the missing business logic in business process
model. To change or add conditions in such a business process models like those in Option 1 of Figure 4.3? Apparently, because
model is far more cumbersome than doing so in the corresponding all of the business logic is not directly visible in the business
Rule Family. process model, some of it must be buried in one or more of the
o Immediate observations are that Option 3 is an improvement over tasks. In fact, it probably is buried in many places, because some
Options 1 and 2 because it: of it may be used in several of the tasks (which is the case in this
• Allows a much simpler business process model business process model).
• Easily highlights all possible combinations of conditions o So, it is likely that some of the business logic is hidden from view
• Permits changes in the Decision Model without changing the in a procedural business process model such as in Option 1.
business process model Further, it is difficult, if not impossible, to resurrect all of it in one
• Permits changes in the business process model without visual artifact—not even by drilling into the detail behind each of
changing the Decision Model (supporting the principle of the process tasks. Therefore, the business logic is rendered
separation of concerns, or teasing apart the ball of mud) unmanageable.
o On the other hand, the Decision Model, by definition and purpose,
EXAMPLE #2: A BUSINESS PROCESS MODEL NEVER REVEALS
resurrects all of the business logic in one visual artifact. In a
ALL BUSINESS LOGIC
populated Decision Model, all business logic is clearly visible in one
o The previous example illustrated that business process models that place and assists in rapidly and accurately gauging the impact of
do not separate business decisions from process tasks bury some
suggested business logic changes without reviewing every task in
business logic in the business process model itself. Example #2 which some portion of that business logic may reside.
now illustrates that, even when this is so, it is usually impossible to
o In a Decision Model, the business logic in one business decision is
resurrect all business logic from such a business process model.
a chain of inferential dependencies. The inferential nature of
Figure 4.3 shows two business process models for determining
business logic within a business decision makes it amenable to
Food Stamp (FS) eligibility. Option 2 depicts a much simpler
having its own model, with distinct boundaries and distinct
business process model than does Option 1.
connections to business processes as needed. In this way, the
o That’s because Option 1 depicts a sequence of process tasks that
Decision Model can be viewed, managed, and executed as one
are forced to occur in a particular sequence but for which such whole set of business logic, as a black box evaluating conditions
sequence is actually not required. The business process model is
and reaching a conclusion.
simplified by removing parts of it that can be represented in a
declarative Decision Model. EXAMPLE #3: SIMPLICITY, PRODUCTIVITY, AND COST SAVINGS
o So, the high-level Decision Model in Figure 4.4 represents the o The business process model in Figure 4.5 is based on a real project
business decision “Determine FS Eligibility.” Although the Decision and is a typical representation of a business process model when
Model contains business logic from several of the tasks in Option it is depicted without regard for whole business decisions. Some of
1, namely, FS Eligibility and Children Qualification, it also contains the tasks evaluate one condition, so the sequence of such tasks
several Rule Families that are not represented by process tasks in imposes a sequence on the evaluation of those conditions. Further,
the business process model: Citizenship Status, SSN Validation, the model contains textual annotations in red representing other
EmploymentStatus, and Income Qualification. So, mingling business logic (or business rules) that are not represented as tasks
business decision logic with process flow as in Option 1 does not in the model itself. So, the business logic has two different kinds of
necessarily expose all of the business logic in that process flow. representations, neither of which seems optimal. It is not difficult to
imagine that producing such business process models is time
DISADVANTAGES TO BURYING DECISIONS (BUSINESS LOGIC) IN consuming, and they quickly become complex. Management of the
BUSINESS PROCESSES business logic and business rules becomes tedious, if not
1. Forces unnecessary sequence and constraints on business logic impossible, because some of it is stated explicitly, some is buried
2. Makes changes to business process and business logic difficult in the business process model itself, and some is probably missing.
3. Adds unmeaningful complexity to business logic and business In fact, this business process model became so unmanageable that
process the client gave up maintaining it, the typical result for models that
4. Fails to deliver a visual representation of all business logic mix process and logic, because they are not decision aware.