module 9: automating business processes

16
Module 9: Automating Business Processes

Upload: ham

Post on 14-Feb-2016

40 views

Category:

Documents


0 download

DESCRIPTION

Module 9: Automating Business Processes. Overview. Lesson 1: Controlling the Flow of an Orchestration Lesson 2: Configuring Orchestrations . Lesson 1: Controlling the Flow of an Orchestration . Scope and Group Shapes Orchestration Flow Control Shapes - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Module 9: Automating Business  Processes

Module 9:Automating Business

Processes

Page 2: Module 9: Automating Business  Processes

Overview

Lesson 1: Controlling the Flow of an OrchestrationLesson 2: Configuring Orchestrations

Page 3: Module 9: Automating Business  Processes

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

Page 4: Module 9: Automating Business  Processes

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

Page 5: Module 9: Automating Business  Processes

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

Page 6: Module 9: Automating Business  Processes

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

Page 7: Module 9: Automating Business  Processes

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

Page 8: Module 9: Automating Business  Processes

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

Page 9: Module 9: Automating Business  Processes

Lesson 2: Configuring Orchestrations

Distinguished FieldsDemonstration: Configuring Orchestration FlowCreating ExpressionsCorrelating MessagesDemonstration: Correlating MessagesHandling Exceptions

Page 10: Module 9: Automating Business  Processes

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

Page 11: Module 9: Automating Business  Processes

Demonstration: Configuring Orchestration Flow

In this demonstration, you will see how to:Promote distinguished fields Configure a decision shape

Page 12: Module 9: Automating Business  Processes

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

Page 13: Module 9: Automating Business  Processes

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

Page 14: Module 9: Automating Business  Processes

Demonstration: Correlating Messages

In this demonstration, you will see how to:Create a correlation type Create a correlation setConfigure correlation for an orchestration

Page 15: Module 9: Automating Business  Processes

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

Page 16: Module 9: Automating Business  Processes

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