45
A Business Rules-Based Approach to Information Systems Development Dr. Paul Dorsey Dulcian, Inc. www.dulcian.com NYOUG – December 12, 2002

NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

A Business Rules-Based Approachto Information Systems Development

Dr. Paul DorseyDulcian, Inc.

www.dulcian.com

NYOUG – December 12, 2002

Page 2: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Agenda

Part I: Overview & Background of BusinessRules

DefinitionsHistoryAdvantages/Disadvantages of approach

Part II: Quest to Create a Rules-BasedDevelopment Environment

Implementing business-rule based systems

Page 3: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

It’s all about business rules

In the last 5 years, business rules have emerged at thecenter of the application development process.There are now entire conferences and publicationsdedicated to business rules:

Business Rules Forum

ODTUG Business Rules Symposium

BR Community

Lots of business rules papers at every conference.

Page 4: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Business Rules

New, cool buzzword?Same old stuff in a new package?

Hype?Remember CASE, artificial intelligence…etc.

Real paradigm shift?Completely revolutionize database industry

Answer: Maybe all three

Page 5: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

What are business rules?

A new word for requirements ??Almost…Refocus from “requirements” to “rules”

Figuring out the business rules is what whatgood analysts have always done.Business Rules include all businessrequirements

A precisely articulated requirementthat is both machine readable & user readable.

Page 6: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

History of theLeading Designers (1)

1980-1990 Denormalization“There is no way to get good performance out of arelational database that is normalized. Good,skilled denormalization is the key.”

1990-1995 Normalization is OK“Now that the database is fast enough, we cannormalize to make our systems easier to build.”

Page 7: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

History of theLeading Designers (2)

1995-2000 Generic Data Models“We can decrease the size of our databases bymodeling some quantity of our systems as data userule tables.”

2001-Present Business Rules-Based Systems“Put as many rules as possible into a repository andgenerate as much of the system as possible.”

Page 8: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Flawed Communication inthe System Design Process

There is nocommon point ofcommunication

between Users andIT Professionals.

USERSIT PROFESSIONALS

SYSTEM

uses and reverse

engineers requirements

build

communicate requirements

BUSINESS RULES

Page 9: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Communication using abusiness rule approach

The Rule Repository is thecommon point ofcommunication betweenUsers and IT Professionals.

USERS

SYSTEM

GEN

ERA

TES

USE

VALID

ATE R

ULES

ENTER

RU

LES

RULEREPOSITORY

IT PROFESSIONALS

Page 10: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

The REAL Advantage!!!!

“The only reason you are able to build socheaply is that you foist the programming offonto your users.” Ulka Rodgers

Page 11: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Building the System

StrategyAnalysisDesignBuildTest

Strategy -- no changeAnalysis (Rule Gathering andvalidation)

Gather rulesImplement systemTest

Build Custom Applications

Rules-BasedTraditional

Page 12: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Business Rules approachis not a new idea

Existing business rule-based approaches:1. Reference tables2. Data modeling tools3. Generic modeling4. Existing business rule tools

All are fragmented approaches.

Page 13: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Imagine PlanetBusiness Rule where…

Users are enabled to articulate theirrequirements (aka business rules).We can easily gather and placerequirements into a business rulesrepository.The whole system is generated from thebusiness rule repository.

Page 14: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Is Planet Business Rules a trap?

Rules must be manageable!500,000 sentences is not viable.Flowcharts with 3000 boxes don’t help.

Helpme!

Page 15: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

How can you managebusiness rules?

1. Analysis Rules ≠ ImplementationRules

Analysis rules = how users talkImplementation Rules = precisespecification

2. Rules must be partitioned.

????

Page 16: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Business rule-basedsystems development

Analysis RulesDeclarativeBusiness ramblings

Implementation RulesStructural (Data Model)Process (Process Flows)

Final system

Hard, creativetransition

Trivial transition

Page 17: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Hard Questions to Ask

1.Where will all of the rulesgo?

Database triggers, proceduresRules ProductApplications

2. How will the systeminteract with the DBMS?

Extracting to rules tool isterrible.

3. How will very detailedsecurity be handled?

Who can do what in each state?

4. What about configurationmanagement?

Real time update is not enough.

5. How can the system beintegrated with existingapplications?

Integration must be seamless.

Page 18: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Tool Types

Capture ruleparagraphsSort intocategoriesGeneratestandardAnalysisDocument

Flowcharts, STELook great in demos

Need hundreds ofboxes for productionflow

Don’t do as much asthey seemGenerate codeUsually are notintegrated intoDBMS

Specifystructuralrules

“Start date <End date”

Generatetrigger codeLimited use

Analysis Rule Gathering Process Flows Database Triggers

Implementation Rules

Page 19: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

The Industry

Analysis rule gatheringBusiness Rules Solutions

Framework Solutions

BRIM™Dulcian, Inc.

Process Flow (Biggestgroup)

ILOGSavantSeeristicBRIM™

Database triggerNintechSeeristic

Full system generationBRIM™

Page 20: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Need for Technical Leadership

Every successful business rules-basedimplementation has used a senior architect.Why does business rule-based developmentrequire a good tech lead?

1. Requires getting pieces to work well together(although there are fewer pieces)2. Totally model-driven design3. True paradigm shift even if you are usingtraditional tools

The moral of the story is:You just can’t buy a tool and run with it.

Page 21: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

How to guaranteeBR project failure

1. Attempt to bolt in a toolDon’t think through the wholeprocess

2. Inadequate tech lead3. Insist that “We don’t needany help.”4. Get rid of tech lead toosoon.

5. Start writing lots of code toovercome deficiencies in rulerepresentation.6. Use declarative processrules

Process rules require a processflow.

7. Don’t worry aboutconfiguration management

Cost of V2 is hugeFull data migration

Page 22: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

The Business RulesCommunity

2 main groupsThe originals:

Ron Ross, Terry MoriartyBusiness Rules ForumFocus on Analysis rules, grammars, taxonomies

The builders:Paul Dorsey, Roland Berg, Dave WendelkenODTUG Business Rules SymposiumFocus on building systemsTools, utilities, code/DB generators

Can’t we all just get along?

Page 23: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Case StudyUS Air Force Recruiting – V1

Air Force RecruitingTools/Approach

Oracle DesignerGeneric ModelingDeclarative Rules

Cost $5million rangeResults

SuccessWhen tech leads left – project struggled

Lessons learnedIt’s hard to do on your ownFull rule support is very hard on a home-grownsystem.

Page 24: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Case StudyUS Air Force Reserves

Recruiting – V1Air Force RecruitingTools

BRIM™

PureEdge (front-end tool)Cost $1million rangeResults

Looking good so farThings are going very fast.

Lessons learnedAnalysis rules are VERY important.Map analysis rules to implementation rulesHaving all rules in a single repository makes themindependent of the physical implementation.

Page 25: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Part II:The Quest to Create a

Complete Business Rules-BasedDevelopment Environment

Page 26: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

The Vision

All rules go into a repository.Rules grammar is robust enough to specify the wholesystem.Users can read (and help enter) rules.You can generate the whole system.

The rules ARE the system.

The generated system will be almost the same as thesystem you would build by hand.

Page 27: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Recall: Business rule-basedsystems development

Analysis RulesDeclarativeBusiness ramblings

Implementation RulesStructural (Data Model)Process (Process Flows)

Final system

Hard, creativetransition

Trivial transition

Page 28: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Analysis Rules

Everyone thinks aboutrules differently.Users think in text.Let each project teamdesign its own analysisrules structure.Map analysis rules toimplementation rules.

Page 29: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Implementation Rules

This is the way we have been thinking for years.We just need to improve upon the idea.

Structural Rules: Data Model

Process Rules:Process Flows

Partition the rules:

Page 30: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

UML as a businessrule language

Unified Modeling LanguageOracle’s directionEstablished standardExtensibleStructural rules

Class diagrams

Process rulesActivity diagrams

Page 31: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Structural Rules – the problem

ERDs – Can be improved uponNot enough rules includedNot extendableReference tables aren’t niceNo inheritance

Page 32: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Structural Rules – the solution

Use UML Class diagrams withextensions:

StandardExtensibleSuperset of ERDs (Easy to move to)

Makes rule representation compact.

Page 33: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

A Better Way to Model

1. No reference tables2. More precise and complete

EMPLOYMENT

EMP DEPTEMP DEPT

EMPLOYMENT{PK HISTORY}

**works for >

Page 34: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Process Rules – the problem

Declarative rules arehard to implement:

“Purchase orders over$50,000 require threelevels of approval.”Too many rulesRules interactTerrible performanceExample:

14,000 rulesNo idea of processNo way to debugPoor performance

Traditional flowcharts orstate diagrams are alsodifficult:

Too many little boxesDecomposition onlymoves the boxes around.

Page 35: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Process Rules – the solution

Business-based process flowsTry a user’s idea of a “state.”

One user state replaces 20-30 state transition enginestates.Makes rule representation compact.

Process step

Page 36: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

States Belong to Objects

Application-independentNo rules in applicationsFully integrated with data model“Classes have attributes. Classes have security rules.Some classes have states.”

Page 37: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

“Inbox State” flowchart

SELECTTRANSITION

CLOSEOBJECT

WAIT TOOPEN

EXECUTESUCCESS

TASKS

GIVEERROR

GIVEERROR

SHOWALTERNATIVES

EXECUTEEXPIRETASKS

EDIT

SELECTTRANSITION

EXPIRE

CHECKOPEN

RULES

FAIL

SUCCEED

EXECUTEBEFORE

OPENTASKS

SUCCEED

OPENOBJECT

CLOSEOBJECT

BAIL TASKSBAIL

CHECKREQUIRED

RULES

PROCESS

CHECK DATAVALIDATION

RULES

SUC

CES

S

SELECT ALTERNATIVE

CANC

EL

CHECKRULES

EXECUTEFAIL TASKS

FAIL

CANCEL

SUCCEED

ON SETTASKS

SELECTTRANSITION

GIVEERROR

FAIL

OPEN

GIVEERROR

FAIL

Page 38: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Timesheet Flow

Page 39: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

System Generation:Structural Rules

Classes are tables.Attributes are columns.Reference tables are domains.Should be as close to traditionalDBMS as possibleGenerate:

tablesviewstriggers

Page 40: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

System Generation:Process Flows

Generate procedures to run in:DatabaseMiddle tierClient

Code must be generated to provide adequateperformance.Application independentApplication should call “ProcessObject( )”

Page 41: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

System Generation:Making it work

Planet Business Rule isjust a playgroundwithout:

ConfigurationmanagementRich security modelFull integration withDBMS

Page 42: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Conclusions

Business rule-based design and development isthe next big shift in the industry.Using an existing commercial product is, at best,a fragmented approach.Complete rules-based environments are coming.The key to project success is a good technicallead.

Page 43: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Dulcian’s BRIM Environment

Full BR based development environmentFreewareFor Demo/License

Write “BRIM” on business card

Page 44: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Finding out more aboutBusiness Rules-Based

SystemsJoin the Business Rules Advisory Group

Free membershipDiscounts on BR products, conferencesFree listserv run by ODTUGWrite “BRAG” on business card

Business Rule ConferencesBusiness Rules Forum

November 4-8, 2002 – New Orleans, LAODTUG Business Rules Symposium

June 15, 2003 – Miami Beach, FL

BRIM™ is sharewareComplete business rules-based environmentFree, unrestricted site licensesFor free demo, write “BRIM” on business card

Page 45: NYOUG December 2002 Dorsey Business Rules-Based Approach ... · It’s all about business rules In the last 5 years, business rules have emerged at the center of the application development

Contact InformationDr. Paul Dorsey – [email protected] website - www.dulcian.com

JDeveloper 3Handbook

Developer AdvancedForms & Reports Designer

Handbook

Coming by year end Oracle 9i JDeveloper Handbook

Design Using UMLObject Modeling