Presentation is loading. Please wait.

Presentation is loading. Please wait.

Module 11: Integrating Business Rules. Overview Lesson 1: Introduction to Business Rules Lesson 2: Integrating Business Rules.

Similar presentations


Presentation on theme: "Module 11: Integrating Business Rules. Overview Lesson 1: Introduction to Business Rules Lesson 2: Integrating Business Rules."— Presentation transcript:

1 Module 11: Integrating Business Rules

2 Overview Lesson 1: Introduction to Business Rules Lesson 2: Integrating Business Rules

3 Lesson 1: Introduction to Business Rules What Are Business Rules? What Are Rules, Policies, and Vocabularies? How Rules and Facts Work Business Rules Orchestration Scenarios Identifying Business Rule Personas

4 Business Rule Engine: What Are Business Rules? Enables policy changes in real time Enables policy changes without recoding or rebuilding the orchestration Enables policy changes in real time Enables policy changes without recoding or rebuilding the orchestration Use business rules to: Trigger notifications Automate approvals Reroute documents Trigger notifications Automate approvals Reroute documents Business EventBusiness DecisionsRules Receive Purchase Order Is customer known? If customer ID exists, then customer is known Is product known? If product ID exists, then product is known Is product available and in inventory? If quantity on hand < reorder quantity, then reorder product

5 What Are Rules, Policies, and Vocabularies? TermDescription Rules Set of conditions and one or more consequent actions Return either True or False Policy Contains a logical grouping of rules Published and deployed to a production environment Vocabulary Collection of definitions for rule conditions and actions Assigns a friendly name to the definition

6 Facts derived from: XML schemas SQL databases.NET classes Predefined and custom vocabularies XML schemas SQL databases.NET classes Predefined and custom vocabularies How Rules and Facts Work Rules Conditions: true/false expression with predicates Actions: initiated when rule condition is met Facts: data upon which rules operate Conditions: true/false expression with predicates Actions: initiated when rule condition is met Facts: data upon which rules operate Policy Rule Set Rules

7 Business Rule Execution Facts are asserted All rules are evaluated If a rule evaluates to true, then its action is added to the agenda Agenda actions are executed in order of their priority Facts are retracted 1 1 3 3 4 4 5 5 2 2 If an action changes a fact that is part of the condition of another rule, then the affected rule will be re-evaluated. If an action changes a fact that is part of the condition of another rule, then the affected rule will be re-evaluated.

8 Post-Processing Preprocessing Business Rules Orchestration Scenarios Call rule engine for dynamic or variable delays Call rule engine and determine path Call rule engine to dynamically determine which orchestration to process the next step Decision Branch Rule Else LogicA LogicB Post-Processing Preprocessing Rule-Based Delay { } Call Rules Rule-Based Send

9 Administrators Secure, deploy, and migrate policies Track policy execution Secure, deploy, and migrate policies Track policy execution Developers Integrate policies within an orchestration Define policies and vocabularies Integrate policies within an orchestration Define policies and vocabularies Identifying Business Rule Personas Information Workers Use business vocabularies to design and test policies

10 Lesson 2: Integrating Business Rules Steps for Integrating Business Rules Composing Business Rules Demonstration: Using the Business Rule Composer Deploying Business Rules Integrating Business Rules into an Orchestration Demonstration: Integrating Business Rules into an Orchestration Tracking Business Rule Policy Execution

11 Steps for Integrating Business Rules Identify the business logic to be represented Identify data sources for rule elements Create rules from vocabulary definitions Test and debug with sample facts Publish and deploy the policy Call the policy from within the orchestration 1 1 3 3 4 4 5 5 6 6 2 2

12 Composing Business Rules Create versions of vocabularies Create vocabulary definitions Compose policies Publish vocabularies and policies Create versions of vocabularies Create vocabulary definitions Compose policies Publish vocabularies and policies Rule Composer Policies Definitions Vocabularies

13 Demonstration: Using the Business Rule Composer In this demonstration, you will see how to: Examine an existing business rule policy Test a business rule policy

14 Deploying Business Rules Export policies or vocabularies Import policies and vocabularies Deploy policies and publish vocabularies Undeploy policies and remove vocabularies Export policies or vocabularies Import policies and vocabularies Deploy policies and publish vocabularies Undeploy policies and remove vocabularies

15 Add a Call Rule shape inside the orchestration Configure the policy and parameters on the Call Rules shape Process the results from the rules 1 1 3 3 2 2 Integrating Business Rules into an Orchestration Item in stock? Construct Order MsgOrder Call Order Level ReceivePO YesElse

16 Demonstration: Integrating Business Rules into an Orchestration In this demonstration, you will see how to configure the Call Rules orchestration shape

17 Tracking Business Rules Policy Execution Tracking Business Rules Use BizTalk Administration Console Monitor rule activities Track the progress of an orchestration that calls rules Use BizTalk Administration Console Monitor rule activities Track the progress of an orchestration that calls rules

18 Lab: Integrating Business Rules Exercise 1:Creating a Business Rule Engine Vocabulary Exercise 2:Composing a Business Rule Policy Exercise 3:Integrating a Business Rule Policy into an Orchestration


Download ppt "Module 11: Integrating Business Rules. Overview Lesson 1: Introduction to Business Rules Lesson 2: Integrating Business Rules."

Similar presentations


Ads by Google