Page 1
©2009 S. Cavanagh, B. Thiagarajan 1
Business Rules Execution via Managed Stored ProceduresA Data-centric Approach
Steve Cavanagh, Software Architect, Ramsey CountyBalaji Thiagarajan, Independent BizTalk Consultant
Twin Cities Connected Systems User Group
Page 2
©2009 S. Cavanagh, B. Thiagarajan 2
AGENDA
Tonight’s presentation is intended to be conversational. Please ask questions.
Steve and Balaji
• Introduction
• Business Problem
• Solution Overview
• Mini Demo of System
• Code: Managed Stored Procedure & Rules Service
• Code: Rules
• Q & A
Page 3
©2009 S. Cavanagh, B. Thiagarajan 3
Tonight’s food provided by
Page 4
©2009 S. Cavanagh, B. Thiagarajan 4
Business ProblemCreate a new health care claiming system to replace a legacy system that is comprised of:
• A hodgepodge of technologies: VB6, Cobol, Access
• Business rules embedded in both stored procedures and VB6 code
• Difficult to troubleshoot
• Does not contain a good audit trail
• Valuable business information is not readily accessible
Page 5
©2009 S. Cavanagh, B. Thiagarajan 5
GoalsCreate a health care claiming system that is:
• Accurate
• Auditable
• Flexible
• Maintainable
• Informative
Page 6
©2009 S. Cavanagh, B. Thiagarajan 6
Claiming Solution
Page 7
©2009 S. Cavanagh, B. Thiagarajan 7
Proof of Concept
An essential aspect to the project.
Steve Reed from Microsoft collaborated on design and provided technical assistance.
Page 8
©2009 S. Cavanagh, B. Thiagarajan 8
AGENDA
• Introduction
• Business Problem
• Solution Overview
• Mini Demo of System
• Code: Managed Stored Procedure & Rules Service
• Code: Rules
• Q & A
Page 9
©2009 S. Cavanagh, B. Thiagarajan 9
Managed Stored Procedure/Function
Page 10
©2009 S. Cavanagh, B. Thiagarajan 10
Rules Engine Server
Page 11
©2009 S. Cavanagh, B. Thiagarajan 11
Rules Engine Service
Page 12
©2009 S. Cavanagh, B. Thiagarajan 12
Enable CLR
Page 13
©2009 S. Cavanagh, B. Thiagarajan 13
Managed Function Installation
Page 14
©2009 S. Cavanagh, B. Thiagarajan 14
Rules
• Overview• Static Support – Registry Key• Vocabulary Upgrader • Unit Testing - BizUnit
Page 15
©2009 S. Cavanagh, B. Thiagarajan 15
Overview of Rules
• Set of simple rules using Xml facts and Database calls using static method helper components.
• The helper components do not implement IFactCreator.• Enterprise Library 3.1 was used for Logging, Error
Handling, Caching and DB Calls.
Page 16
©2009 S. Cavanagh, B. Thiagarajan 16
Static Support - Registry Key
Page 17
©2009 S. Cavanagh, B. Thiagarajan 17
Vocabulary Upgrader
• Problem: Upgrading to a new version of vocabulary will not automatically upgrade the vocabulary references in Rules.
• Result: Multiple versions of vocabulary references present in a single version of rule.
• Solution: Vocabulary Upgrader is now integrated with the Acumen Rule Manager previously available as a stand alone application.
Page 18
©2009 S. Cavanagh, B. Thiagarajan 18
Page 19
©2009 S. Cavanagh, B. Thiagarajan 19
Unit Testing
• Used BizUnit framework to develop Test Scripts.• Used NUnit to run the tests.• BizUnit.BizTalkSteps.FactBasedRuleEngineStep – new on
latest BizUnit release, not much documentation.
Page 20
©2009 S. Cavanagh, B. Thiagarajan 20
Q & A
• How has Ramsey County benefitted from this new system?– Found $100,000.00 in claims that were “missed” by
the old system.– Changes to rules are easier to implement and verify.
Page 21
©2009 S. Cavanagh, B. Thiagarajan 21
Thank you for attending
Steve [email protected]
Balaji [email protected]