Business Rules Management
Martijn Zoet Universiteit Utrecht - 2012
Today’slessonAintroduc+onshouldbelikealady'sskirt:longenoughtocovertheessen+alsbutshortenoughtokeepitinteres+ng(BasedonEnglishproverb)
(BasedonEnglishproverbandDeGroot)
Awareness
Understanding
Grip
BusinessRulesManagement(ValueProposi=on)
BusinessRules(ValueProposi=on)
RulesBusinessValueProposi=on
Awareness
!Rules!!Rules!!Rules!!Rules!
BR(M)ValueProposi=on
BusinessRulesValue
BusinessRulesManagement
Value
BusinessValueAwareness
Understanding
Grip
Howmuchisthesmallblind?Whichplayerhastopostthesmallblind?
Howmuchisthebigblind?Whichplayerhastopostthebigblind?
Howmanycardsneedtobedealt?
Whatistheminimalbet?Whatisthemaximalbet?Howdowebet?
Howmanycardsneedtobeburned?
Howmanycardsneedtobedealt?
Whatistheminimalbet?Whatisthemaximalbet?Howdowebet?
Howmanycardsneedtobeburned?
Howmanycardsneedtobedealt?
Whatistheminimalbet?Whatisthemaximalbet?Howdowebet?
Howmanycardsneedtobeburned?
Howmanycardsneedtobedealt?WhatisaRiverCard?
Whatistheminimalbet?Whatisthemaximalbet?Howdowebet?
Whatistheminimalbet?Whatisthemaximalbet?Howdowebet?
Theorderofac+vi+es?
Case:AegonBank
Case:AegonBank
Case:AegonBank
Case:AegonBankFunc+onalitythrough Registra+on; Quota+ons; Acceptance;
ThereforeStraightProcessing
Case:Belas+ngdienst
ValueNetwork
Organiza=onA Organiza=onC
Suprana=onal
Regula=on
Na=onal Local
Standardiza=onOrganisa=ons
BrancheOrganiza=ons
Consumers
BusinessRulesEco‐System
BR(M)ValueProposi=on
BusinessRulesValue
BusinessRulesManagement
Value
BusinessValueAwareness
Understanding
Grip
Acustomerthathasplacedanordermusthaveanassignedagent
BusinessRules:Examples
Acustomerisalwaysconsideredagoldcustomerifthecustomerplacesmorethan12ordersduringacalendaryear
Agoldcustomermustbeallowedaccesstothewarehouse
Anorderover$1,000mustnotbeacceptedoncreditwithoutacreditcheck
Deliveryofproductsisnotallowedbeforethecustomerhaspaidthebill
Aquota+onmustbeofferedwithinonedayaWeranapplica+onhasbeenreceived
KlantenmeteenBKRcoderingnemenwenietaan.
BusinessRules:DutchExamples(1/2)
BijdeOPMAAThypotheekdienteenverzekeringvanverzekeringXafgeslotenteworden.
HypothekenmeteenhoofdsomonderdeNHGnormkrijgen0,2%rentekor+ng.
Denotarismoetbekendzijnbijvoorkeurvooroffereren,dochuiterlijkvoorfinaalakkoord.
Eensenioracceptantmageenmaximalerentekor+nggevenvan0,5%
Debasisrentevoorallehypothekenwordtdekomendetweewekenmet0,5%verhoogd.
Bijrenteherzieningenwordthetkomendejaar1,5%bovendemarktrentegeoffreerd.
Bijontslaghoofdelijkeaansprakelijkwordtnietgerappelleerdopontbrekendestukken.
BusinessRules:DutchExamples(2/2)
Ophetschermisal+jdhetdossiernummerendenaamvandeingelogdegebruikerzichtbaar.
Webiedensamenmetdeverzekeraareengeintegreerdeofferteaan.
Nieuweklantenkrijgenvoortgangbovenbestaandeklanten
DemaximaleverstrekkingsnormvoordeFlexibelHypotheekis125%bovendeexectu+ewaarde.
Bijbekendetaxa+ewaardenouderdaneenhalfjaarwordtbijeenmuta+egeenhertaxa+euitgevoerd.
Bijmuta+esvancontractenwordtgeenBKRtoetsaangeroepen.
Aporterattheentranceoftheworkplace,havingworkinstruc+onscontainingtherulesmen+onedabove,thatcontrolseverybodywhoentersonwearingacer+fiedhelmetandcer+fiedshoes
Acer+fiedsecurityhelmetmustalwaysbewornbysomeonewhoresidesontheworkplace
BusinessRules:Implementa+on
Cer+fiedsecurityshoesmustalwaysbewornbysomeonewhoresidesontheworkplace
Awarningsignontheentranceoftheworkplacethatdisplaystheconceptualrulesmen+onedabove
Aworkinstruc+onmanualthatishandedovertoallpersonnelandthatcontainstherulesmen+onedabove
Problem Goal
ArchitecturalSolu+on
BasedonEngelsman(2010)
Requirement
Posi+onofBusinessRules
Addressedby
Realizedby
BusinessRulesConstraintsorGuidelines Defines
BusinessRules
BusinessProcessManagementLifecycleGartner(2008)
Posi+onofBusinessRules
goed
slecht
laag
hoog
The‘DecisionProcess’
TaskSequencingRulesDefini+on:Rulesthathaveaninfluenceontheposi+oningofoneormul+pleprocesselements
Example:
Rule:Banksarepermijedtotransfermoneyforindividualsthatarenotexis+ngcustomersbutthisissubjectedtorules(BASELII).
ActorInclusionRulesDefini+on:Rulesthathaveaninfluenceontheassignmentoftasksordecisiontospecificactors
Example:
Rule:internalregula+onexistthatthecommunica+onoftheresultsshouldalwaysbeperformedbyadoctor.
DataInforma+onRegistra+onDefini+on:Rulesthathaveaninfluenceonrecordingandviewingdata/informa+on,andtheauthoriza+onsrelatedtothis.
Example:
• Completeness• Accuracy• Timing• Authoriza+on
ExampleBasedonBaselII
BR(M)ValueProposi=on
BusinessRulesValue
BusinessRulesManagement
Value
BusinessValueAwareness
Understanding
Grip
Suppor+ngbusinessrulesusingmethods,techniquesandsoWwarefortheelicita+on,analysis,design,deploymentandmonitoringofbusinessrulesinvolvinghumans,organiza+ons,
applica+ons,documentsandothersourcesofinforma+onZoetandVersendaal(2010)
“astatementthatdefinesorconstrainssomeaspectofthebusinessintendingtoassertbusinessstructureortocontrolthebehaviourofthebusiness”.Morgan(2002)
Governingofmethods,techniquesandsoWwarefortheelicita+on,analysis,design,deploymentandmonitoringofbusinessrulesdefiningbusinessen++es,businesslogic,constraintsorcalcula+ons.
ZoetandVersendaal(2011)
BusinessRules
BRValue
BRMValue
Definingbusinessen++es,businesslogic,constraintsorcalcula+ons.ZoetandVersendaal(2011)
ProcessVersusRulesManagementHistory
BusinessProcessManagement
BusinessRulesManagement
BusinessProcess
Actors
Nota=
onFunc=on
Nota=
onComponent
Applica=
onFunc=on
Applica=
onCom
ponent
SystemSoI
ware
Device
Elicita=on
Analysis
Design
Valida=on
Deployment
Monitoring
RuleType(s)
LifecycleManagement
BusinessRulesManagementFramework
BusinessProcess
Actors
Nota=
onFunc=on
Nota=
onComponent
Applica=
onFunc=on
Applica=
onCom
ponent
SystemSoI
ware
Device
Elicita=on
Analysis
Design
Valida=on
Deployment
Monitoring
RuleType(s)
LifecycleManagement
BusinessRulesManagementFramework
SWRL
LegalBlueprint
JuridischDecomplexiemodel
DecisionTrees
DecisionTables RuleML
E‐PowerMethod
RuleInterchangeFormat
Produc+onRuleRepresenta+on
DomainModels
Seman+csofBusinessVocabularyandBusinessRules
VisualRulesModels
DifferentBusinessRulesLanguages
Example Languages (1/2)
Example Languages (2/2)
Business Rules Country
SOA County
Business Process State
Data City Events Town
ORGANISATION
Theissuepart
Watbetekentloon?
BusinessVocabulary
BusinessVocabularyandDataStructures
Business Rules
Theissuepart2
Business Process
SWRL
Legal Blueprint
Juridisch Decomplexiemodel
Decision Trees Decision Tables RuleML
E-Power Method
Rule Interchange Format
Production Rule Representation
Petri Nets
Archimate
Unified Modeling Language
Business Process Modeling Notation
Domain Models
Semantics of Business Vocabulary and Business Rules
Integration DEFinition for Function
Fundamental Modeling Concepts
Business Process Execution Language
Flowcharts
Event-driven Process Chain
Visual Rules Models
• Event, Condition and Action or Context, Property, Operation and Keywords. • Represents decision as events that triggers a rule, a condition that is evaluated
and actions that are executed.
• Conceptual formalizations • Represent rules as statements that are based on fact statements related to
terms.
• Condition and Conclusion • Represent rules as conditions that lead to specific conclusions.
FocusLanguages
Event,Condi+onandAc+on
Kardasis (2004):
Production Rule Representation
ConceptualFormaliza+ons
SBVR
‘Rule Management Group Language’
Rulespeak
Rulespeak (2010): “Definitie: RuleSpeak® is een verzameling richtlijnen voor het formuleren van bedrijfsregels op een bedrijfsvriendelijke en precieze manier. Het is geen taal of syntax maar eerder een verzameling voorschriften voor Nederlandstalige formulering van bedrijfsregels gebaseerd op ervaringen in de praktijk.
Bedoeling: • Het vergroten van de helderheid en consistentie in het communiceren van regels tussen mensen uit de bedrijfspraktijk of als eisen (requirements) voor de ontwikkeling van IT systemen.
• Het effectief verkrijgen, verwoorden en behouden van bedrijfskennis en criteria om beslissingen te nemen.”
Rulespeak
Rulespeak
Condi+onandConclusionDecision Tables
NO SILVER BULLET
flickr: eschipul
(Brooks, 1987 - IEEE Computer)
Can you imagine having no traffic lights or signs or any other way of keeping cars and people apart? The results would be dangerous chaos, right?
Well, they have a lot a faith in human nature in the small Dutch town of Drachten. Its main intersection is a busy place, where cars and trucks compete with people on bicycles, and others on foot. The normal civic response - here and elsewhere - has been to put in more traffic lights, divide the roadway into lanes - control things. But the response in Drachten has been the opposite - they took the controls away.
A funny thing happened. The accident rate around the intersection went down - way down, from more than eight a year to fewer than two.
"We wanted to appeal to social behaviour, people's own behaviour and their responsibility," says Nieske Ketelaar, Drachten city councillor………………
(3 News, 2009)
No signs or lights - but fewer accidents?
BR(M) Value Proposition
Business Rules Value
Business Rules
Management Value
Business Value Awareness
Understanding
Grip
Dehumanization
Possible Downside BR-Solutions
Tunnel Vision
Knowledge Pool Drain
Based on Everest (2010)
Unexpected violation of law
(Professional) Liability
Intellectual Property
Based on Everest (2010)
Possible Downside BR-Solutions
14-09-2009 MBI Colluqium