SlideShare a Scribd company logo
1 of 10
Conceptual Graphs, Logical Expressions and SBVR By: GeshanManandhar 12/04/2011
Business Rules Business rule is “rule that is under business jurisdiction” (Object Management Group, 2008) Constraints are ways to enforce business rules. Conceptual graphs and logical expression provide a path to translate constraints into physical level implementation. SBVR is a formal standard developed by OMG to define business vocabulary and describe rules based on the vocabulary. 2
Constraint 3 : Conceptual Graph A pickup biker cannot pickup a consignment in a district which she/he does not cover. 3
Constraint 3: Logical Expression Logical Expression: not (a valid concept PB of type ‘Pickup Biker’ and a valid concept DP of type ‘Dispatch Parcel’ and a valid concept DD of type ‘District Division’ and a valid concept PC of type ‘Parcel of Consignment’ and a valid concept PD of type ‘Pickup District’ such that PB.Employeeo DD.Employeeand PB.Dispatch Parcel o DP and DP.Parcel of Consignment o PC and PC.Consignmento PD.Consignmentand PD.District <> DD.District) 4
Constraint 3 : SBVR 5
Constraint 3: Trigger CREATE TRIGGER [PICKUP_BIKER_COVERS_PICKUP_DISTRICT] ON [DISPATCH_PARCEL] FOR INSERT, UPDATE AS IF EXISTS (SELECT  DP.CONSIGNMENT_NR 		FROM	DISPATCH_PARCEL DP INNER JOIN  EMPLOYEE E ON DP.PICKUP_BIKER = E.EMPLOYEE_NR INNER JOIN INSERTED I ON  I.PICKUP_BIKER = E.EMPLOYEE_NR INNER JOIN CONSIGNMENT C ON C.CONSIGNMENT_NR = DP.CONSIGNMENT_NR 		WHERE	C.PICKUP_DISTRICT_NAME <> E.DISTRICT_NAME ) BEGIN  RAISERROR 4000005 'THE PICKER BIKER DOES NOT COVER THE PICKUP DISTRICT.' ROLLBACK END 6
Constraint 4: Conceptual Graph The delivery time of a dispatch parcel must not be equal or smaller than the pickup time of that dispatch parcel. 7 Logical Expression: not (a valid concept DDT of type ‘Dispatch Delivery Time’and a valid concept DPT of type ‘Dispatch Pickup Time’such that DDT.DispatchParcel o DPT.Dispatch Parcel and DDT.Date_Time<= DPT.Date_Time)
Constraint 4: SBVR 8
Constraint 4: Check Constraint ALTER TABLE DISPATCH_PARCEL WITH CHECK  ADD  CONSTRAINT DISPATCH_DELIVERY_TIME_LATER_THAN_PICKUP_TIME CHECK  ((DISPATCH_D > DISPATCH_P)) 9
Reflection Business rules are easy to express in natural language but difficult to implement. It is better to write rules as what is not wanted (negative statements). A well designed repository of business rules in form of logical expression can help to automate implementation (active approach). 10

More Related Content

Viewers also liked (6)

Multi Med01 St
Multi Med01 StMulti Med01 St
Multi Med01 St
 
Technology at tutorials
Technology at tutorialsTechnology at tutorials
Technology at tutorials
 
Teen events
Teen eventsTeen events
Teen events
 
ARGENTINA-FOTOS HISTÓRICAS
ARGENTINA-FOTOS HISTÓRICASARGENTINA-FOTOS HISTÓRICAS
ARGENTINA-FOTOS HISTÓRICAS
 
LECTRIC seminar - People Marketing
LECTRIC seminar -  People MarketingLECTRIC seminar -  People Marketing
LECTRIC seminar - People Marketing
 
Embrace chatops, stop installing deployment software - Laracon EU 2016
Embrace chatops, stop installing deployment software - Laracon EU 2016Embrace chatops, stop installing deployment software - Laracon EU 2016
Embrace chatops, stop installing deployment software - Laracon EU 2016
 

Similar to Business Rules Logical Experssion and SBVR

SSRP Webmethods
SSRP WebmethodsSSRP Webmethods
SSRP Webmethods
mahansen
 
HRD 897 SSRP
HRD 897 SSRPHRD 897 SSRP
HRD 897 SSRP
mahansen
 
Blank Logo LEAN template
Blank Logo LEAN templateBlank Logo LEAN template
Blank Logo LEAN template
Leanleaders.org
 
Blank Logo LEAN template
Blank Logo LEAN templateBlank Logo LEAN template
Blank Logo LEAN template
Leanleaders.org
 
Capital budgeting techniques
Capital budgeting techniquesCapital budgeting techniques
Capital budgeting techniques
Ian Isabel
 
Cockpit d1.3 interviews telcos
Cockpit d1.3 interviews telcosCockpit d1.3 interviews telcos
Cockpit d1.3 interviews telcos
christos
 

Similar to Business Rules Logical Experssion and SBVR (18)

SSRP Webmethods
SSRP WebmethodsSSRP Webmethods
SSRP Webmethods
 
HRD 897 SSRP
HRD 897 SSRPHRD 897 SSRP
HRD 897 SSRP
 
Blank Logo LEAN template
Blank Logo LEAN templateBlank Logo LEAN template
Blank Logo LEAN template
 
Blank Logo LEAN template
Blank Logo LEAN templateBlank Logo LEAN template
Blank Logo LEAN template
 
LEAN template
LEAN templateLEAN template
LEAN template
 
LEAN template
LEAN templateLEAN template
LEAN template
 
3 capital budgeting
3 capital budgeting3 capital budgeting
3 capital budgeting
 
Rules as Code Jersey - parsing drafts for if-then - CALC2022.pptx
Rules as Code Jersey - parsing drafts for if-then - CALC2022.pptxRules as Code Jersey - parsing drafts for if-then - CALC2022.pptx
Rules as Code Jersey - parsing drafts for if-then - CALC2022.pptx
 
Chapter 09 Capital Budgeting
Chapter 09 Capital BudgetingChapter 09 Capital Budgeting
Chapter 09 Capital Budgeting
 
Task 4 - Resume Making Capital Investment Decisions.pptx
Task 4 - Resume Making Capital Investment Decisions.pptxTask 4 - Resume Making Capital Investment Decisions.pptx
Task 4 - Resume Making Capital Investment Decisions.pptx
 
D11 Define Review
D11 Define ReviewD11 Define Review
D11 Define Review
 
D11 Define Review
D11 Define ReviewD11 Define Review
D11 Define Review
 
Capital budgeting techniques
Capital budgeting techniquesCapital budgeting techniques
Capital budgeting techniques
 
Cockpit d1.3 interviews telcos
Cockpit d1.3 interviews telcosCockpit d1.3 interviews telcos
Cockpit d1.3 interviews telcos
 
Project Launch Meeting PowerPoint Presentation Slides
Project Launch Meeting PowerPoint Presentation SlidesProject Launch Meeting PowerPoint Presentation Slides
Project Launch Meeting PowerPoint Presentation Slides
 
Longhorn PHP Tech Debt
Longhorn PHP Tech DebtLonghorn PHP Tech Debt
Longhorn PHP Tech Debt
 
Company HQ Site Move: Requirements & Transition Plan
Company HQ Site Move: Requirements & Transition PlanCompany HQ Site Move: Requirements & Transition Plan
Company HQ Site Move: Requirements & Transition Plan
 
Project Launch Meeting Powerpoint Presentation Slides
Project Launch Meeting Powerpoint Presentation SlidesProject Launch Meeting Powerpoint Presentation Slides
Project Launch Meeting Powerpoint Presentation Slides
 

More from Geshan Manandhar

Drupal 7 basic setup and contrib modules for a brochure website
Drupal 7 basic setup and contrib modules for a brochure websiteDrupal 7 basic setup and contrib modules for a brochure website
Drupal 7 basic setup and contrib modules for a brochure website
Geshan Manandhar
 
Drupal 7 install with modules and themes
Drupal 7 install with modules and themesDrupal 7 install with modules and themes
Drupal 7 install with modules and themes
Geshan Manandhar
 

More from Geshan Manandhar (20)

Are logs a software engineer’s best friend? Yes -- follow these best practices
Are logs a software engineer’s best friend? Yes -- follow these best practicesAre logs a software engineer’s best friend? Yes -- follow these best practices
Are logs a software engineer’s best friend? Yes -- follow these best practices
 
We lost $ 20.5K in one day and how we could have saved it… hint: better autom...
We lost $ 20.5K in one day and how we could have saved it… hint: better autom...We lost $ 20.5K in one day and how we could have saved it… hint: better autom...
We lost $ 20.5K in one day and how we could have saved it… hint: better autom...
 
Moving from A and B to 150 microservices, the journey, and learnings
Moving from A and B to 150 microservices, the journey, and learningsMoving from A and B to 150 microservices, the journey, and learnings
Moving from A and B to 150 microservices, the journey, and learnings
 
Adopt a painless continuous delivery culture, add more business value
Adopt a painless continuous delivery culture, add more business valueAdopt a painless continuous delivery culture, add more business value
Adopt a painless continuous delivery culture, add more business value
 
Things i wished i knew as a junior developer
Things i wished i knew as a junior developerThings i wished i knew as a junior developer
Things i wished i knew as a junior developer
 
Do You Git Your Code? Follow Simplified Gitflow Branching Model to Improve Pr...
Do You Git Your Code? Follow Simplified Gitflow Branching Model to Improve Pr...Do You Git Your Code? Follow Simplified Gitflow Branching Model to Improve Pr...
Do You Git Your Code? Follow Simplified Gitflow Branching Model to Improve Pr...
 
Embrace chatOps, stop installing deployment software
Embrace chatOps, stop installing deployment softwareEmbrace chatOps, stop installing deployment software
Embrace chatOps, stop installing deployment software
 
7 rules of simple and maintainable code
7 rules of simple and maintainable code7 rules of simple and maintainable code
7 rules of simple and maintainable code
 
Software engineering In Nepal mid 2015 part 01
Software engineering In Nepal mid 2015 part 01Software engineering In Nepal mid 2015 part 01
Software engineering In Nepal mid 2015 part 01
 
A simplified Gitflow
A simplified GitflowA simplified Gitflow
A simplified Gitflow
 
How to become a better software company technically
How to become a better software company technicallyHow to become a better software company technically
How to become a better software company technically
 
Things I wished I knew while doing my tech bachelor / undergraduate
Things I wished I knew while doing my tech bachelor / undergraduateThings I wished I knew while doing my tech bachelor / undergraduate
Things I wished I knew while doing my tech bachelor / undergraduate
 
Message Queues a basic overview
Message Queues a basic overviewMessage Queues a basic overview
Message Queues a basic overview
 
Most popular brands, people on facebook in nepal as of 2013 q4
Most popular brands, people on facebook in nepal as of 2013 q4Most popular brands, people on facebook in nepal as of 2013 q4
Most popular brands, people on facebook in nepal as of 2013 q4
 
Drupal 7 basic setup and contrib modules for a brochure website
Drupal 7 basic setup and contrib modules for a brochure websiteDrupal 7 basic setup and contrib modules for a brochure website
Drupal 7 basic setup and contrib modules for a brochure website
 
Drupal 7 install with modules and themes
Drupal 7 install with modules and themesDrupal 7 install with modules and themes
Drupal 7 install with modules and themes
 
Drupal introduction
Drupal introductionDrupal introduction
Drupal introduction
 
No sql
No sqlNo sql
No sql
 
Drupal A non technical Introduction
Drupal A non technical IntroductionDrupal A non technical Introduction
Drupal A non technical Introduction
 
01 Php Introduction
01 Php Introduction01 Php Introduction
01 Php Introduction
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

Business Rules Logical Experssion and SBVR

  • 1. Conceptual Graphs, Logical Expressions and SBVR By: GeshanManandhar 12/04/2011
  • 2. Business Rules Business rule is “rule that is under business jurisdiction” (Object Management Group, 2008) Constraints are ways to enforce business rules. Conceptual graphs and logical expression provide a path to translate constraints into physical level implementation. SBVR is a formal standard developed by OMG to define business vocabulary and describe rules based on the vocabulary. 2
  • 3. Constraint 3 : Conceptual Graph A pickup biker cannot pickup a consignment in a district which she/he does not cover. 3
  • 4. Constraint 3: Logical Expression Logical Expression: not (a valid concept PB of type ‘Pickup Biker’ and a valid concept DP of type ‘Dispatch Parcel’ and a valid concept DD of type ‘District Division’ and a valid concept PC of type ‘Parcel of Consignment’ and a valid concept PD of type ‘Pickup District’ such that PB.Employeeo DD.Employeeand PB.Dispatch Parcel o DP and DP.Parcel of Consignment o PC and PC.Consignmento PD.Consignmentand PD.District <> DD.District) 4
  • 5. Constraint 3 : SBVR 5
  • 6. Constraint 3: Trigger CREATE TRIGGER [PICKUP_BIKER_COVERS_PICKUP_DISTRICT] ON [DISPATCH_PARCEL] FOR INSERT, UPDATE AS IF EXISTS (SELECT DP.CONSIGNMENT_NR FROM DISPATCH_PARCEL DP INNER JOIN EMPLOYEE E ON DP.PICKUP_BIKER = E.EMPLOYEE_NR INNER JOIN INSERTED I ON I.PICKUP_BIKER = E.EMPLOYEE_NR INNER JOIN CONSIGNMENT C ON C.CONSIGNMENT_NR = DP.CONSIGNMENT_NR WHERE C.PICKUP_DISTRICT_NAME <> E.DISTRICT_NAME ) BEGIN RAISERROR 4000005 'THE PICKER BIKER DOES NOT COVER THE PICKUP DISTRICT.' ROLLBACK END 6
  • 7. Constraint 4: Conceptual Graph The delivery time of a dispatch parcel must not be equal or smaller than the pickup time of that dispatch parcel. 7 Logical Expression: not (a valid concept DDT of type ‘Dispatch Delivery Time’and a valid concept DPT of type ‘Dispatch Pickup Time’such that DDT.DispatchParcel o DPT.Dispatch Parcel and DDT.Date_Time<= DPT.Date_Time)
  • 9. Constraint 4: Check Constraint ALTER TABLE DISPATCH_PARCEL WITH CHECK ADD CONSTRAINT DISPATCH_DELIVERY_TIME_LATER_THAN_PICKUP_TIME CHECK ((DISPATCH_D > DISPATCH_P)) 9
  • 10. Reflection Business rules are easy to express in natural language but difficult to implement. It is better to write rules as what is not wanted (negative statements). A well designed repository of business rules in form of logical expression can help to automate implementation (active approach). 10