160 likes | 290 Views
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
E N D
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 • Orchestration Flow Control Shapes (continued) • Expression and Exception Shapes • Nesting Orchestrations
Scope and Group Shapes Group Process Loan Orchestration Visually group shapes Collapsible Not saved as code Receive Loan Application Scope Request Credit Report Scope Order Appraisal Framework for organizing actions Used for exception handling andtransactional execution Contains one or more blocks Can have appended exception-handling blocks Can have appended compensation blocksif transactional Exception Handlers Compensation Sign Documents
Orchestration Flow Control Shapes Check Quantity Rule Else Drop a shapefrom the toolbox here Drop a shapefrom the toolbox here Delay Listen Drop a shapefrom the toolbox here Drop a shapefrom the toolbox here Drop a shapefrom the toolbox here Drop a shapefrom the toolbox here
Orchestration Flow Control Shapes (continued) Loop Drop a shape from the toolbox here Parallel Actions Drop a shape from the toolbox here Drop a shape from the toolbox here Suspend Terminate
Expression and Exception Shapes Expression Throw Exception
Nesting Orchestrations Invokes another orchestration synchronously Can pass parameters in and out Calling orchestration waits Invokes another orchestration asynchronously Can pass in parameters Calling orchestration continues processing Start Orchestration Call Orchestration
Lesson 2: Configuring Orchestrations • Distinguished Fields • Demonstration: Configuring Orchestration Flow • Creating Expressions • Correlating Messages • Demonstration: Correlating Messages • Handling Exceptions
Distinguished Fields OrderTotal = msgOrder(TotalOrderAmount) * msgOrder.Discount; Distinguished Fields Used to make decisions or manipulate data within an orchestration Provide an alias directly to a schema node Created by promoting a property in the BizTalk Editor Low overhead Property Fields Require a Property Schema Length of value is limited to 256 characters Can 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 Use Expressions to: • Filter messages in receive shapes • Assign values to messages and message parts • Initialize and manipulatethe values oforchestration variables • Assign values to dynamic ports • Call a .NET object
Correlating Messages Correlation Matches incoming messages to a specific orchestration instance Developer defines correlation set Correlation set is a set of properties that have specific values Values can be data properties or context properties Correlation sets can be passed as parameters to orchestrations Notify Bank Orchestration Called by Process Loan Orchestration Send Bank Notification Send Receive Receive Confirmation Instance Subscription
Demonstration: Correlating Messages In this demonstration, you will see how to: Create a correlation type Create a correlation set Configure correlation for an orchestration
Handling Exceptions Exceptions Scope Use to control orchestration errors BizTalk Server provides handling mechanisms ExceptionThrown Exception causes Throw Exception shape Time-out occurs Transaction failure External user code failure System exception External fault message Catch exception block Error Report Exception Handler Error Handling
Lab: Automating Business Processes Exercise 1: Examine an Existing Project Exercise 2: Promote Distinguish Fields Exercise 3: Create a New Orchestration Exercise 4: Create Orchestration Ports Exercise 5: Build, Deploy, and Test the BizTalk Application