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 If quantity on hand < reorder
in inventory?
quantity, then reorder product
What Are Rules, Policies, and Vocabularies?
Term
Rules
Description
Set of conditions and one or more
consequent actions
Return either True or False
Contains a logical grouping of rules
Policy
Vocabulary
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
Rules
Conditions: true/false expression
with predicates
Actions: initiated when rule condition is met
Facts: data upon which rules operate
Facts derived from:
XML schemas
SQL databases
.NET classes
Predefined and
custom vocabularies
Business Rule Execution
1 Facts are asserted
2 All rules are evaluated
3 If a rule evaluates to true, then its action is added to the agenda
4 Agenda actions are executed in order of their 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
Call Rules
Call Rules
{}
{}
Preprocessing
Preprocessing
Rule-Based Send
Rule-Based Delay
Rule
Else
Post-Processing
Post-Processing
LogicA
LogicB
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
1 Identify the business logic to be 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
6 Call the policy from within the orchestration
Composing Business Rules
Create versions
of vocabularies
Policies
Create vocabulary
definitions
Compose policies
Publish
vocabularies
and policies
Vocabularies
Definitions
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
ReceivePO
Configure the policy and parameters
2 on the Call Rules shape
Construct Order
3 Process the results from the rules
MsgOrder
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 BizTalk Administration Console
Monitor rule activities
Track the progress of an orchestration
that calls rules
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
© Copyright 2026 Paperzz