Module 11 Integrating Business Rules Overview Lesson 1
Module 11: Integrating Business Rules
Overview Lesson 1: Introduction to Business Rules Lesson 2: Integrating Business Rules
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
What Are Business Rules? Business Rule Engine: Enables policy changes in real time Enables policy changes without recoding or rebuilding the orchestration Business Event Receive Purchase Order Business Decisions Use business rules to: Trigger notifications Automate approvals Reroute documents Rules 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 If quantity on hand < reorder quantity, then
What Are Rules, Policies, and Vocabularies? Term Rules Description Set of conditions and one or more consequent actions Return either True or False Policy Vocabulary Contains a logical grouping of rules Published and deployed to a production environment Collection of definitions for rule conditions and actions Assigns a friendly name to the definition
How Rules and Facts Work Policy Rule Set Rules Facts derived from: XML schemas SQL databases. NET classes Predefined and custom vocabularies Rules Conditions: true/false expression with predicates Actions: initiated when rule condition is met Facts: data upon which rules operate
Business Rule Execution 1 Facts are asserted 2 All rules are evaluated If a rule evaluates to true, then its action is added 3 to the agenda Agenda actions are executed in order of their 4 priority 5 Facts are retracted If an action changes a fact that is part of the condition of another rule, then the affected rule will be re-evaluated.
Business Rules Orchestration Scenarios Call Rules {} {} Preprocessing Rule-Based Send Rule-Based Delay Rule Else Post. Processing Post-Processing Logic. A Logic. B Decision Branch Post-Processing Call rule engine to dynamically determine which orchestration to process the next step Call rule engine for dynamic or variable delays Call rule engine and determine path
Identifying Business Rule Personas Developers Information Workers Integrate policies within an orchestration Define policies and vocabularies Use business vocabularies to design and test policies Administrators Secure, deploy, and migrate policies Track policy execution
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
Steps for Integrating Business Rules Identify the business logic to be 1 represented 2 Identify data sources for rule elements 3 Create rules from vocabulary definitions 4 Test and debug with sample facts 5 Publish and deploy the policy Call the policy from within the 6 orchestration
Composing Business Rules Create versions of vocabularies Create vocabulary definitions Policies Compose policies Publish vocabularies and policies Vocabular ies Definition s Rule Composer
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
Deploying Business Rules Export policies or vocabularies Import policies and vocabularies Deploy policies and publish vocabularies Undeploy policies and remove vocabularies
Integrating Business Rules into an Orchestration Add a Call Rule shape inside 1 the orchestration 2 3 Configure the policy and parameters on the Call Rules shape Process the results from the rules Receive. PO Construct Order Msg. Order Call Order Level Item in stock? Yes Else
Demonstration: Integrating Business Rules into an Orchestration In this demonstration, you will see how to configure the Call Rules orchestration shape
Tracking Business Rules Policy Execution Tracking Business Rules Use Biz. Talk Administration Console Monitor rule activities Track the progress of an orchestration that calls rules
Lab: Integrating Business Rules Exercise 1: Business Rule Creating a Engine Vocabulary Exercise 2: Composing a Business Rule Policy Exercise 3: Business Rule Orchestration Integrating a Policy into an
- Slides: 18