Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Adrian Walker
CTO
www.reengineeringllc.com
Presentation for the Connecticut COOUG Business Rules Special Interest Group
April 18 2006
Experience
Agenda
Summary
Copyright 2006 Reengineering
Aligning IT strategy with business strategy has been one of the top three
issues confronting IT and business executives for more than 20 years
They can all converse, read, and write in English (or Spanish, French)
Agenda
Summary
Copyright 2006 Reengineering
------------------hardware
10
11
--------------sellers
12
13
---------networked databases
14
15
Agenda
Summary
Copyright 2006 Reengineering
16
If you change the order of the rules you will get different results
If the user interface deals with English, then there is a dictionary and a
grammar in the system
For rules to work efficiently over a database, someone must write and maintain
SQL queries
If you want explanations from a rule system, you must annotate the rules in
English
17
18
Business Analyst
Sees English
explanations of the
Results
19
Business
Analyst
Sees English
explanations
of the Results
Semantics2
Theory of
Declarative
Knowledge
Programmer
Copyright 2006 Reengineering
20
Business
Analyst
Internet
Business
Business Policy Agents
Logic
Application
Independent
Sees English
explanations
of the Results
Semantics2
Theory of
Declarative
Knowledge
Programmer
Copyright 2006 Reengineering
21
Business
Analyst
Internet
SQL
Business
Business Policy Agents
Logic
Semantics1
Application
Independent
Sees English
explanations
of the Results
RDF
Semantics2
Theory of
Declarative
Knowledge
Programmer
Copyright 2006 Reengineering
22
If you change the order of the rules you will get different the same results
If the user interface deals with English, then there is a there need be no
dictionary and a or grammar in the system
For rules to work efficiently over a database, someone must write and maintain
SQL queries can be generated and run automatically from the rules
If you want explanations from a rule system, you must need not annotate the
rules in English
Copyright 2006 Reengineering
23
Agenda
Summary
Copyright 2006 Reengineering
24
Rule
person some-CID some-name is classified in driver eligibility as Young Driver
person that-CID that-name has Marital Status Single in his or her description
not : person that-CID that-name resides in a state that is exceptional for driver premium purposes
-------------------------------------------------------------------------------------------------------------------------------person that-CID that-name is subject to a $ 300 premium increase
Facts
this-state is exceptional for driver premium purposes
========================================
CA
NY
VA
To view, run and change this example, please point a browser to reengineeringllc.com and select InsuranceCaseStudy1
25
To view, run and change this example, please point a browser to reengineeringllc.com and select InsuranceCaseStudy1
26
To view, run and change this example, please point a browser to reengineeringllc.com and select InsuranceCaseStudy1
27
To view, run and change this example, please point a browser to reengineeringllc.com and select InsuranceCaseStudy1
28
29
Agenda
Summary
Copyright 2006 Reengineering
30
To view, run and change this example, please point a browser to reengineeringllc.com and select EU-rent2
31
To view, run and change this example, please point a browser to reengineeringllc.com and select EU-rent2
32
To view, run and change this example, please point a browser to reengineeringllc.com and select EU-rent2
33
To view, run and change this example, please point a browser to reengineeringllc.com and select EU-rent2
34
Agenda
Summary
Copyright 2006 Reengineering
35
36
Answer:
patient this-number had in-patient treatment this-conditn1 overlapping with out-patient treatment this-conditn2
===================================================================================
521049571
Antepartum, Med Complica
Cataract (Chronic)
521049571
Antepartum, Med Complica
Female infertility (Acute)
521049571
Chemotherapy
Female infertility (Acute)
521049571
Pelv Evis,Rad Hyst,Vulv
Cataract (Chronic)
521049571
Pelv Evis,Rad Hyst,Vulv
Female infertility (Acute)
To view, run and change this example, please point a browser to reengineeringllc.com and select Medmine2
37
To view, run and change this example, please point a browser to reengineeringllc.com and select Medmine2
38
To view, run and change this example, please point a browser to reengineeringllc.com and select Medmine2
39
To view, run and change this example, please point a browser to reengineeringllc.com and select Medmine2
40
Agenda
Summary
Copyright 2006 Reengineering
41
Location
External Forces
Sales Demand
November
Price
Product
Copyright 2006 Reengineering
42
Terminal
Storage
Refinery
Service
Station
Terminal
Pickup
43
in open vocabulary
English Directly into a
browser
Business Analyst
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1
44
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1
45
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1
46
estimated demand some-id in some-region is for some-amount gallons of some-product in some-month of some-year
sum a-num :
for demand that-id for that-product refinery some-name can supply some-num gallons of some-product1 = a-total
------------------------------------------------------------------------------------------------------------------------------------------for demand that-id the refineries have altogether that-total gallons of acceptable base products
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1
47
What proportion of
each base product
should be used?
Business Analyst
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1
48
for demand this-id this-region for this-quantity this-finished-product we use this-amount this-product from this-refinery
============================================================================================
523
NJ
1000
product-y
190.0
product-x
Shell Canada One
523
NJ
1000
product-y
310.0
product-y
Shell Canada One
523
NJ
1000
product-y
500.0
product-z
Shell Canada One
49
Business Analyst
Sees English
explanations of the
Results
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1
50
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1
51
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1
52
53
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1MySql1
54
A data table
we have this-method transportation from refinery this-name to region this-region
============================================================
truck
Shell Canada One
NJ
rail
Shell Canada One
NJ
A link rule that says how to find an equivalent table T1 on the internet
url:example.com dbms:mysql dbname:transport tablename:T1 port:3306 id:id123 password:pw345
------------------------------------------------------------------------------------------------------------------------------------------we have this-method transportation from refinery this-name to region this-region
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1MySql1
55
What proportion of
each base product
should be used?
Oil Industry
Business Rules
Runs the Rules using
the browser
End User /
Business Analyst
Client
Internet
Business
Logic
Application
Independent
SQL
Server2
SQL
Server3
Server1
To view, run and change this example, please point a browser to reengineeringllc.com and select Oil-IndustrySupplyChain1MySql1
56
57
It would be difficult to
write the SQL query reliably by hand
manually reconcile it with the business knowledge specified in the rules.
Yet this example is simpler than for a real supply chain !
58
By their nature, the comments would not be used during machine processing
-- correctness of the hand written-SQL would rely on lengthy,
and error prone manual verification
59
Agenda
Summary
Copyright 2006 Reengineering
60
61
62
63
Agenda
Summary
Copyright 2006 Reengineering
64
[reengineeringllc.com]
[SBVR-06-03-02]
65
[reengineeringllc.com]
[SBVR-06-03-02]
66
[reengineeringllc.com]
[SBVR-06-03-02]
67
[reengineeringllc.com]
[SBVR-06-03-02]
68
69
Summary
70
Links
1. These slides can be downloaded from www.reengineeringllc.com
2. What a reasoner should do to be compatible with relational database usage:
Backchain Iteration: Towards a Practical Inference Method that is Simple Enough to be Proved
Terminating, Sound and Complete. Journal of Automated Reasoning, 11:1-22.
3. The English inferencing examples
InsuranceCaseStudy1
EU-rent2
Medmine2
Oil-IndustrySupplyChain1
Oil-IndustrySupplyChain1MySql1
(and many other examples provided) can be run, changed, and re-run as follows:
1. Point Internet Explorer 6, Netscape 7, Firefox or Mozilla to www.reengineeringllc.com
2. Click on Internet Business Logic
3. Click on the GO button
4. Click on the Help button to see how to navigate through the pages
5. Select InsuranceCaseStudy1
4. You are cordially invited to write and run your own examples. Shared use of the system is free.
Copyright 2006 Reengineering
71