Presentation is loading. Please wait.

Presentation is loading. Please wait.

Auckland Connected Systems User Group November 19th 2009 Jeffrey Chilberto BizTalk Consultant

Similar presentations


Presentation on theme: "Auckland Connected Systems User Group November 19th 2009 Jeffrey Chilberto BizTalk Consultant"— Presentation transcript:

1 Auckland Connected Systems User Group November 19th 2009 Jeffrey Chilberto BizTalk Consultant http://bloggingabout.net/blogs/chilberto

2 The Business Rules Framework is a Microsoft.NET-compliant class library. It provides an efficient inference engine that can link highly readable, declarative, semantically rich rules to any business objects (.NET components), XML documents, or database tables. Application developers can build business rules by constructing rules from small building blocks of business logic (small rule sets) that operate on information (facts) contained in.NET objects, database tables, and XML documents. Reference: http://msdn.microsoft.com/en-us/library/aa561216(BTS.10).aspx November 19th 2009Business Rules Service2

3 Solution Process The Business Rules Engine is a.Net framework designed to inject functionality at runtime. Host Application Business Rules Engine Facts The BRE is comprised of a utilities to create and manage Rules, Business Rules Composer BizTalk Management Console a repository for storing Rules, Rule Store Policy Update Service and a mechanism for executing rules BizTalk Call Rules Shape from within an Orchestration Microsoft.RuleEngine Library November 19th 2009Business Rules Service3

4 Separation of business logic from application allowing for more opportunities to leverage the logic elsewhere Can lead to lower maintenance costs Can lead to greater understanding of the business requirements November 19th 2009Business Rules Service4 Application involves significant decision making Rules change frequently Application is relatively stable

5 .Net objects (methods, properties and fields)  XML documents (elements, attributes)  Database rowsets Facts can be short term  A short-term fact is specific to a single execution cycle of the rule engine. and long term facts  A long-term fact is loaded into the working memory of the rule engine for use over an arbitrary number of execution cycles. November 19th 2009Business Rules Service5

6 A policy is a versioned logical grouping of rules. November 19th 2009Business Rules Service6 A rule consists of a condition and actions. The condition is evaluated, and if it evaluates to true, the rule engine initiates one or more actions.

7 A collection of values, references to.Net class members, xpath statements and database objects used to make the creation of Rules simpler and more intuitive. November 19th 2009Business Rules Service7

8 An order: November 19th 2009Business Rules Service8

9 Constant Value Set of Values November 19th 2009Business Rules Service9

10 XPath Get XPath Set November 19th 2009Business Rules Service10

11 The XPath Selector is used to define and select a 'fact‘ while the XPath field determines what aspect of the fact is to be selected. November 19th 2009Business Rules Service11

12 Promotion based on product id  multiple facts can be asserted  Forward Chaining  Priority November 19th 2009Business Rules Service12

13 November 19th 2009Business Rules Service13

14  Manipulation of business objects  Configuration storage  Default values  Routing  Document Validation http://seroter.wordpress.com/2009/11/11/validating-incoming-data-using-the-biztalk-business-rules-engine/ November 19th 2009Business Rules Service14

15 Loosely tied service with contract definitions  Facts are sent in and returned as un-typed objects  ServiceKnownTypeAttribute is used for serialization of messages and contract metadata without requiring a service rebuild November 19th 2009Business Rules Service15

16 Reference to Microsoft.RuleEngine library Policy policy = new Policy(“ACSUG.ApplyPromotion”); policy.Execute(facts.ToArray(), interceptor); IRuleSetTrackingInterceptor can be used to track activity of BRE November 19th 2009Business Rules Service16

17 MSDN Documentation http://msdn.microsoft.com/en-us/library/aa561216(BTS.10).aspx BizTalk Hotrod – Exposing Business Rules Engine as a WCF Service (Issue 4) http://biztalkhotrod.com/Issues.aspx Configuration http://www.biztalkgurus.com/newsletter/TheBizTalker-Volume-07.html Static Methods Feature http://blogs.msdn.com/richardbpi/archive/2005/11/14/492489.aspx Lengthy walk-through http://msdn.microsoft.com/en-us/library/ms942178(BTS.10).aspx November 19th 2009Business Rules Service17


Download ppt "Auckland Connected Systems User Group November 19th 2009 Jeffrey Chilberto BizTalk Consultant"

Similar presentations


Ads by Google