SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Destaque

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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Mais de 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
 

Mais de 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
 

Último

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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
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
 
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
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 

Último (20)

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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
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
 
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...
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
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...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

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