SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Andere mochten auch

Multi Med01 St
Multi Med01 StMulti Med01 St
Multi Med01 StCallieO
 
Technology at tutorials
Technology at tutorialsTechnology at tutorials
Technology at tutorialsNigel Gibson
 
Teen events
Teen eventsTeen events
Teen eventswipl
 
ARGENTINA-FOTOS HISTÓRICAS
ARGENTINA-FOTOS HISTÓRICASARGENTINA-FOTOS HISTÓRICAS
ARGENTINA-FOTOS HISTÓRICASbiblioteca8de8
 
LECTRIC seminar - People Marketing
LECTRIC seminar -  People MarketingLECTRIC seminar -  People Marketing
LECTRIC seminar - People MarketingLECTRIC
 
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 2016Geshan Manandhar
 

Andere mochten auch (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
 

Ähnlich wie Business Rules Logical Experssion and SBVR

SSRP Webmethods
SSRP WebmethodsSSRP Webmethods
SSRP Webmethodsmahansen
 
HRD 897 SSRP
HRD 897 SSRPHRD 897 SSRP
HRD 897 SSRPmahansen
 
Blank Logo LEAN template
Blank Logo LEAN templateBlank Logo LEAN template
Blank Logo LEAN templateLeanleaders.org
 
Blank Logo LEAN template
Blank Logo LEAN templateBlank Logo LEAN template
Blank Logo LEAN templateLeanleaders.org
 
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.pptxMatthewWaddington3
 
Chapter 09 Capital Budgeting
Chapter 09 Capital BudgetingChapter 09 Capital Budgeting
Chapter 09 Capital BudgetingAlamgir Alwani
 
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.pptxZalfa36
 
Capital budgeting techniques
Capital budgeting techniquesCapital budgeting techniques
Capital budgeting techniquesIan Isabel
 
Cockpit d1.3 interviews telcos
Cockpit d1.3 interviews telcosCockpit d1.3 interviews telcos
Cockpit d1.3 interviews telcoschristos
 
Project Launch Meeting PowerPoint Presentation Slides
Project Launch Meeting PowerPoint Presentation SlidesProject Launch Meeting PowerPoint Presentation Slides
Project Launch Meeting PowerPoint Presentation SlidesSlideTeam
 
Longhorn PHP Tech Debt
Longhorn PHP Tech DebtLonghorn PHP Tech Debt
Longhorn PHP Tech DebtBoyd Hemphill
 
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 PlanInnovate Vancouver
 
Project Launch Meeting Powerpoint Presentation Slides
Project Launch Meeting Powerpoint Presentation SlidesProject Launch Meeting Powerpoint Presentation Slides
Project Launch Meeting Powerpoint Presentation SlidesSlideTeam
 

Ähnlich wie 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
 

Mehr von Geshan Manandhar

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 practicesGeshan Manandhar
 
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...Geshan Manandhar
 
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 learningsGeshan Manandhar
 
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 valueGeshan Manandhar
 
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 developerGeshan Manandhar
 
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...Geshan Manandhar
 
Embrace chatOps, stop installing deployment software
Embrace chatOps, stop installing deployment softwareEmbrace chatOps, stop installing deployment software
Embrace chatOps, stop installing deployment softwareGeshan Manandhar
 
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 codeGeshan Manandhar
 
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 01Geshan Manandhar
 
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 technicallyGeshan Manandhar
 
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 / undergraduateGeshan Manandhar
 
Message Queues a basic overview
Message Queues a basic overviewMessage Queues a basic overview
Message Queues a basic overviewGeshan Manandhar
 
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 q4Geshan 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 websiteGeshan 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 themesGeshan Manandhar
 
Drupal A non technical Introduction
Drupal A non technical IntroductionDrupal A non technical Introduction
Drupal A non technical IntroductionGeshan Manandhar
 

Mehr von 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
 

Kürzlich hochgeladen

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Kürzlich hochgeladen (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

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