SQL Database Design For Developers at php[tek] 2024
BizTalk Orchestration Fundamentals
1. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Microsoft BizTalk Server
Orchestration Fundamentals
Manoj Kumar
manoj.kumar@neudesic.com 25 April 2013
2. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
2009 2010 2007 2008
August 2010
Ranked as one of the top
technology solution providers
in America by CRN Magazine
for the past 4 years.
The Trusted Technology Partner in
Business Innovation
August 2010
Ranked as one of the top
technology solution providers
in America by CRN Magazine
for the past 4 years.
July 2010
Named Microsoft Partner of
the Year Finalist in 2 separate
categories
June 2010
CRN Magazine's list of the
largest solution providers in
North America
3. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
What is BizTalk – Orchestration?
Orchestration is a way to automate business processes
management (BPM)
It is just an executable code to run a workflow supporting a
business process
Orchestration interacts with outside entities by using the
ports (receive and send port)
Workflow: A logical and chronological set of activities in order to achieve a goal.
4. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk Orchestration – Commonly used terms
• Orchestration: Business interaction (similar to workflow) captured thru shapes.
• Transformation: Creating a correspondence between source and target schema
(via Maps)
• Message Correlation: Capturing and passing data values between asynchronous
messages in same orchestration instance.
• Shape: Visual representations of underlying actions
• Orchestration Designer: Visual tool for creating orchestrations
5. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk Orchestration – Commonly used terms
• Promotion: Promotion of message properties creates decision points and become
part of message context. Whole message must be loaded to be interrogated. Limited to
255 characters.
• Distinguished fields: A lighter way to access message property in orchestration.
Message elements that are written into the message context. A reference is added as
MessageName.RecordName.ChieldRecordName.DistinguishedFieldName.
• Dehydration: Saving state of an Orchestration instance and freeing up the memory
while waiting for external events (message, delay, retries) and idle for long time.
• Rehydration: Upon trigger (message, timeout expiration) restoring the orchestration
instance and running it from the point it left off.
6. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration Engine
Tasks it does:
– Creates instances of orchestrations and executes them
– Maintains the state of a running orchestration instance so that it can be
restored to memory when required
– Performs optimizations of running orchestrations to maximize scalability,
throughput, and efficient use of resources
– Provides a reliable shutdown-and-recovery system
7. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration: Message routing
Thru subscription from MB and publishing message to MB
On message receive: New instance activated or Existing instance
rehydrated
Can create new message: Persisted in the MessageBox and
referenced by the orchestration instance. XLANG/s subservice makes
calls to the Message Agent API to insert messages into MB.
8. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration: Dehydration
Dehydration: Saving state of an active orchestration instance including
all of its data to MB and then removing that instance from memory. This is
while instance is idle for a period of time.
Time-to-dehydration: MaxThreshold (30mins) and MinThreshold (1 sec)
When it can occur:
– Waiting to receive a message (due to external web service call or adapter
response etc…)
– Orchestration marked as long running
– Between the retries of an atomic transaction
9. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration: Rehydration
Rehydration: Loading the saved orchestration instance into
memory, restoring its state, and running it from the point
where it left off.
When it can occur:
– Engine is triggered when it receives a message
– Timeout expires
10. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration Designer
11. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration: Steps to develop
Define the schemas
Add and configure the shapes to represent the business process
Define new message instances to be processed
Define and assign orchestration variables to declare and manage
the data used in the orchestration.
Define the orchestration ports to receive and send messages
Bind the send and receive shapes to ports
Build, deploy to GAC, and test the orchestration
12. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration: DEMO - 1
Orchestration Designer
– Creating an Orchestration
– Adding receive and send shapes
– Adding ports and its binding
– Copying an XML file – End to End
13. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk Messaging – Promoted properties
Promotion of message properties creates decision points
These become part of message context
Whole message must be loaded to be interrogated for promoted ones
Limited to 255 characters
Used for routing, correlation and/or tracking
14. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk Messaging – Distinguished properties
A lighter way to access message property in orchestration
Message elements that are written into the message context
A reference is added as
MessageName.RecordName.ChieldRecordName.DistinguishedFieldName
Distinguished fields should be used when a particular message element is
commonly manipulated in one or more orchestration
15. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk Messaging – Promoted Vs Distinguished properties
PROMOTED FIELDS/ PROPERTIES DISTINGUISHED FIELDS
Used for routing (subscription mechanism)
IsPromoted = true
Do not participate in routing
IsPromoted = false
Used for tracking Not used for tracking
Restricted to 255 characters No size limitation
Available for use in orchestrations Available for use in orchestrations
Require property schema Do not require property schema
Used by standard pipeline components
Accessible only by custom pipeline component
which would explicitly access them
16. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration: DEMO - 2
Promotion
Distinguished field
Using promoted/distinguished properties
17. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration: Correlation
The mechanism for being able to receive related messages into the same
running orchestration instance asynchronously
To achieve in designer:
– Defines a correlation type that includes the promoted properties that are
used to relate messages
– Defines a correlation set (An instance of the correlation type defined above)
– Correlation set initializes on send port and is being followed on other receive
port
PassThrough receive pipeline can’t be used: As properties need to be
promoted to message context.
18. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
BizTalk – Orchestration: DEMO - 3
Correlation
19. The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Thank You
Manoj Kumar
manoj.kumar@neudesic.com