Module 9: Automating Business Processes
description
Transcript of Module 9: Automating Business Processes
Module 9:Automating Business
Processes
Overview
Lesson 1: Controlling the Flow of an OrchestrationLesson 2: Configuring Orchestrations
Lesson 1: Controlling the Flow of an Orchestration
Scope and Group ShapesOrchestration Flow Control Shapes Orchestration Flow Control Shapes (continued)Expression and Exception ShapesNesting Orchestrations
Group
Scope and Group Shapes
Scope
Framework for organizing actionsUsed for exception handling andtransactional executionContains one or more blocksCan have appended exception-handling blocksCan have appended compensation blocksif transactional
Visually group shapesCollapsibleNot saved as code
Process Loan Orchestration
Scope
Receive Loan Application
Request Credit Report
Order Appraisal
Sign Documents
Exception Handlers
Compensation
Orchestration Flow Control Shapes
Shape Use
Decide To represent If/Else logicDefine rule for each branch
DelayTo control the timing ofthe orchestrationSpecify pause time or predefined dateor time
Listen
To wait for events to occurbefore proceedingMust use Receive or Delay as thefirst shapeFollows the first condition met inthe branchCan use as many branches as needed
Delay
Drop a shapefrom the toolbox here
Drop a shapefrom the toolbox here
Drop a shapefrom the toolbox here
Drop a shapefrom the toolbox here
Listen
Check Quantity
Drop a shapefrom the toolbox here
Rule Else
Drop a shapefrom the toolbox here
Orchestration Flow Control Shapes (continued)
Shape Use
Loop To repeat actions while a condition is metUse Expression Editor to set the condition
Parallel Actions
Ensures that all branches complete before continuingSingle-threaded execution. Does not run branches concurrentlyUsed primarily for coordinating multiple receive shapes
SuspendTo suspend a running orchestrationUse Expression Editor to set the conditionAdministrator intervention requiredto resume
TerminateTo end a running orchestration immediately Can specify an error message string tohelp diagnosis
LoopDrop a shape from the toolbox here
Suspend
Terminate
Drop a shape from the toolbox
here
Drop a shape from the toolbox
here
Parallel Actions
Expression and Exception Shapes
Shape Use
ExpressionEnter any expression in an orchestrationUse Expression Editor to define expression
Throw ExceptionExplicitly throw an exceptionExceptions are caught at present scope orat the next containing scope
Expression
Throw Exception
Invokes another orchestration asynchronouslyCan pass in parametersCalling orchestration continues processing
Start Orchestration
Invokes another orchestration synchronouslyCan pass parameters in and outCalling orchestration waits
Call Orchestration
Nesting Orchestrations
Lesson 2: Configuring Orchestrations
Distinguished FieldsDemonstration: Configuring Orchestration FlowCreating ExpressionsCorrelating MessagesDemonstration: Correlating MessagesHandling Exceptions
Distinguished Fields
Distinguished Fields
Used to make decisions or manipulate data within an orchestrationProvide an alias directly to a schema node Created by promoting a property in the BizTalk EditorLow overhead
OrderTotal = msgOrder(TotalOrderAmount) * msgOrder.Discount;
Property Fields
Require a Property SchemaLength of value is limited to 256 charactersCan be used in subscriptions
Demonstration: Configuring Orchestration Flow
In this demonstration, you will see how to:Promote distinguished fields Configure a decision shape
Creating Expressions
Operators Description== equal to!= not equal to
< less than
> greater than
<= less than or equal to
>= greater than or equal toexists exists
Use Expressions to:
Filter messages in receive shapesAssign values to messages and message partsInitialize and manipulatethe values oforchestration variablesAssign values to dynamic portsCall a .NET object
Correlation
Correlating Messages
Matches incoming messages to a specific orchestration instanceDeveloper defines correlation setCorrelation set is a set of properties that have specific valuesValues can be data properties or context propertiesCorrelation sets can be passed as parameters to orchestrations
Notify Bank OrchestrationCalled by Process Loan Orchestration
Send Bank Notification
Receive Confirmation
Receive
Instance Subscription
Send
Demonstration: Correlating Messages
In this demonstration, you will see how to:Create a correlation type Create a correlation setConfigure correlation for an orchestration
Handling Exceptions
Exceptions
Use to control orchestration errors BizTalk Server provides handling mechanisms
Exception causes
Throw Exception shapeTime-out occursTransaction failureExternal user code failureSystem exceptionExternal fault message
Scope
Exception Handler
Catch exception block
Error Report
Error Handling
ExceptionThrown
Lab: Automating Business Processes
Exercise 1: Examine an Existing ProjectExercise 2: Promote Distinguish FieldsExercise 3: Create a New Orchestration Exercise 4: Create Orchestration Ports Exercise 5: Build, Deploy, and Test the
BizTalk Application