Britz_BusinessRules_20080924

  • Upload
    mbritz

  • View
    221

  • Download
    0

Embed Size (px)

Citation preview

  • 8/8/2019 Britz_BusinessRules_20080924

    1/17

    1

    1

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Factoring Business Rulesinto Requirements Analysis

    Mario Britz, Camilion Solutions, Inc.

    First presented on September 24, 2008 at theIIBA Toronto Chapter

    2

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Question 1

    a) 5 years

    b) 10 years

    c) 20 years

    d) Good software never expires it justgoes to a better place

    The average lifespan of enterprise software is__ years.

  • 8/8/2019 Britz_BusinessRules_20080924

    2/17

    2

    3

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Question 2

    a) New technology

    b) Changing requirements

    c) Improving performance

    d) Just because

    The majority of legacy replacements areattributed to _____________.

    4

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Objectives

    Understand the nature of business rulesand how it influences the choice ofimplementation

    Discuss ways the BA can better expressbusiness rules (with examples)

  • 8/8/2019 Britz_BusinessRules_20080924

    3/17

    3

    5

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    The Business Rule Motivation Model

    Source: Business Rules Group

    6

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    The Product/Process Matrix

  • 8/8/2019 Britz_BusinessRules_20080924

    4/17

    4

    7

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Variability

    How far apart is your simplest and mostcomplex products?

    To what extent does the product affect theprocess?

    How frequent are rule changes?

    8

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Implementation Options

    Policies cancelled after 30 days ofcontinuous coverage are subject to a $50administrative fee.

    Source: Ultrapak Underwriting Guidelines

  • 8/8/2019 Britz_BusinessRules_20080924

    5/17

    5

    9

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Option Comparison

    a) if daysInEffect > 30then cancellationFee = $50else cancellationFee = $0

    b) if daysInEffect > getMaxFreeDays()then cancellationFee = getCancellationFee()else cancellationFee = $0

    c) cancellationFee =executeRules(Cancel, Today())

    10

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Implementation Choices

    Increasing Volume

    Increasing Variety

    Hard coded(ifthenelse)

    Data DrivenBusinessRule Driven

    Increasing Flexibility & Configuration

    Increasing Performance & Effort to Change

  • 8/8/2019 Britz_BusinessRules_20080924

    6/17

    6

    11

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Business Rules within Context

    Strategy provides high-level direction about whatactions an organization should take to achieveits goals

    Actions involve producing one or more productsby following a set of business processes

    Product rules guide composition

    Process rules guide behavior

    Enforcement levels apply

    Variability influences the choice ofimplementation

    12

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    The Voice of the Customer

    Business people express rules in naturallanguage

    Imprecise and open to interpretation

    No separation of process and product

  • 8/8/2019 Britz_BusinessRules_20080924

    7/17

    7

    13

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    The Case for Modeling

    If you cant model the problem then youmost likely dont understand it

    If you dont model the problem then youmost likely dont know what you dontknow

    14

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Example 1

    All plans require 100% participation ofeligible employees and a minimum of 3employees must be insured for all quotedbenefits. Minimum monthly premiumrequired is $100.

    Source: Benepac Underwriting Guidelines

  • 8/8/2019 Britz_BusinessRules_20080924

    8/17

    8

    15

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    What We Dont Know

    Plan

    minPrem

    Employee

    isMember3..n1

    Is there a maximum # of planmembers?

    Can an employee be associatedwith more than one plan?

    Does the minimum premiumapply to an individual member orthe total plan premium?

    What determines eligibility?

    How are benefits assembled intoa plan?

    How do the rules change overtime?

    AssumptionsGaps

    16

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    A Better Understanding

    PlanminMonthlyPremPerMemberminFullMembersmaxMembers

    Employee

    dateOfBirth/age

    1..n

    Age determines eligibility

    A maximum exists and both minimum and maximummay change over time

    An employee may participate in different plans over time

    The monthly premium is on a member basis

    /isMember/isFullMember

    n

    Benefit

    n

    1..n

    n

    n

  • 8/8/2019 Britz_BusinessRules_20080924

    9/17

    9

    17

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Example 2

    The employee organization which receivesa majority vote of the employees in arepresentation election is the onlyemployee organization having the right torepresent the employees before the boardof directors of the district.

    Source: Washington State School Board

    18

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Limited Flexibility

    SchoolDistrict

    CollectiveBargainingUnitEmployee0..1n

    1..n

    1

    1..n

    1 majority

    Very explicit relationships Limited expansion opportunities

  • 8/8/2019 Britz_BusinessRules_20080924

    10/17

    10

    19

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Abstraction

    Party1..n

    highest degree of flexibility

    more difficult for business to understand

    difference between conceptual and specificationmodels

    relationship1..n

    PersonOrganization

    20

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Example 3

    A novice driver whose license has beenexpired must reapply as a new driver andpass the required tests (vision, knowledge,road tests).

    Source: Ontario Motor Vehicle Registration

  • 8/8/2019 Britz_BusinessRules_20080924

    11/17

    11

    21

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    What We Dont Know

    Driver11

    Licence

    expDate

    ExperienceLevel

    1

    n

    22

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    A Better Understanding

    Driver1..n

    The experience level of a driver varies within the

    context of the particular licence

    1Licence

    expDate

    DriverHistory ExperienceLevel1n

  • 8/8/2019 Britz_BusinessRules_20080924

    12/17

    12

    23

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Embedded Rules

    expired?

    renew

    novice? renew

    reapply

    reapply

    vision?

    apply

    knowledge? issueroad?

    [fail]

    [pass][pass][pass]

    [fail] [fail]

    [yes]

    [no] [yes]

    [no]

    24

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    test

    Abstraction

    status?

    renew

    experience? renew

    reapply

    reapply

    vision?

    apply

    knowledge? issueroad?

    [fail]

    [pass][pass][pass]

    [revoked]

    [else]

    [novice,intermediate]

    [else]

    3 attempts within a 2month period with atleast 1 week inbetween

  • 8/8/2019 Britz_BusinessRules_20080924

    13/17

    13

    25

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    issued

    Aligning Product and Process

    pending/apply

    active[approved]

    [declined]

    expired

    [experienced]/renew

    expire

    [novice]/reapply

    26

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    One Ring to Bind them All

    Use case serves to complete the picture

    Aligns all models

    Facilitate expression of business rules atlowest level of granularity

    Further helps to identify gaps

  • 8/8/2019 Britz_BusinessRules_20080924

    14/17

    14

    27

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Use Case Notation

    5. Sets the status of thelicence to ACTIVE

    The Use Case Ends

    4. Updates the expirationdate to 5 years fromToday

    ReapplyAF3. Verifies that the driverexperience level is notNOVICE

    Not expiredEF2. Verifies that the licenceexpiration date is in thepast

    1. Requests renewal

    ReferenceSystemActor

    28

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Abstraction (Use Case)

    LifecycleSD4. Updates the licence

    statusThe Use Case Ends

    Renewal termBR3. Updates the licenceexpiration date

    Renewaleligibility

    Do not renew

    Reapply

    BR

    EF

    AF

    2. Verifies that the licencecan be renewed

    1. Requests renewal

    ReferenceSystemActor

  • 8/8/2019 Britz_BusinessRules_20080924

    15/17

    15

    29

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Abstraction (Business Rules)

    1. Five years from date of renewal2. Renewal Term

    1. Expiration date must be in the past

    2. Driver experience level must not be novice

    1. Renewal Eligibility

    DescriptionName

    30

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Rule Types and Means of Expression

    Data requirement grids (including datatypes, default values, validation rules,error messages)

    Formulas (calculations)

    Decision tables (eligibility, cross-validation,outcomes)

    Single values (data driven configuration)

  • 8/8/2019 Britz_BusinessRules_20080924

    16/17

    16

    31

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Applicability

    Agile High levels of change from iteration to iteration

    Models document the implementation

    Abstraction absorbs impact

    Product Configurators Same set of use cases

    Same process and product models

    Business rule driven configuration

    Maintenance Model based impact analysis

    32

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    Expressing Rules through Models

    Product structure rules can be representedby static models such as the UML classdiagram

    Process rules can be represented bydynamic models such as the UML activitydiagram

    UML state diagrams partially bridges thegap between process and product

    Use cases serve to complete the picture

  • 8/8/2019 Britz_BusinessRules_20080924

    17/17

    17

    33

    Camilion Solutions, Inc. All Rights Reserved. ProductAuthority, Authority Suiteand related trademarks are property of Camilion Solutions, Inc.

    References & Further Reading

    Software Lifetime and its

    Evolution Process overGenerations [Tamai]

    Enforcement of Business Rules

    in Relational Databases UsingConstraints [Zimbro]

    White Papers

    Principles of the Business Rule

    Approach [Ross, 2003]

    ISBN 0201788934

    Analysis Patterns: Reusable

    Object Models [Fowler, 1997]

    ISBN 0201895420

    Design Patterns: Elements ofReusable Object-oriented

    Software [Gamma, 2004]

    ISBN 0201633612

    Uml Distilled: A Brief Guide tothe Standard Object Modeling

    Language [Fowler, 2003]

    ISBN 0321193687

    Books

    www.businessrulesgroup.org

    Links