220 likes | 403 Views
Module 8: Creating a BizTalk Orchestration. Overview. Lesson 1: Introduction to BizTalk Orchestration Lesson 2: Building an Orchestration Lesson 3: Monitoring Orchestrations. Lesson 1: Introduction to BizTalk Orchestration. Modeling a Business Process What Is an Orchestration?
E N D
Overview • Lesson 1: Introduction to BizTalk Orchestration • Lesson 2: Building an Orchestration • Lesson 3: Monitoring Orchestrations
Lesson 1: Introduction to BizTalk Orchestration • Modeling a Business Process • What Is an Orchestration? • How the BizTalk Orchestration Engine Works • Orchestrating a Business Process • Stages of Orchestration Development • Importing and Exporting BPEL
Modeling a Business Process User InvoiceApprover POApprover ProcurementApp FinanceApp Vendor Warehouse PO request approval Purchase request Vendor Organization Buyer Organization Request acknowledgement Purchase order PO approval Purchase order acknowledgement Shipping order Invoice request approval Invoice Invoice approval Payment
Modeling a Business Process User InvoiceApprover POApprover ProcurementApp FinanceApp Vendor Warehouse PO request approval Purchase request Cancel Purchase request Vendor Organization Buyer Organization Request acknowledgement Purchase order PO approval Purchase order acknowledgement Shipping order Invoice request approval Invoice PO Canceled
What Is an Orchestration? Orchestration Designer Is a visual design environment Provides implementation shapes for modeling automated business processes Saves business process model for later compilation Port Surface << >> Port Surface Receive PO ReceivePOPortOperation_1-> Request Check Quantity Else Denied Send_Approve Denied Msg SendApprvPort Operation_1-> Request Transform SendDeniedPortOperation_1 <- Request Send_Denied BizTalk Orchestration Is a run-time engine Executes business processes Compile and Deploy BizTalk Server
How the BizTalk Orchestration Engine Works Orchestration Engine Orchestration engine Creates orchestration instances Maintains state of orchestrations Performs resource optimizations Provides reliable shutdown and recovery Dehydrate Rehydrate MessageBox
Orchestrating a Business Process BizTalk Purchase request User InvoiceApprover POApprover ProcurementApp FinanceApp Vendor Warehouse PO request approval Request acknowledgement Vendor Organization Buyer Organization PO approval Purchase order Purchase order acknowledgement Shipping order Invoice Invoice request approval Invoice approval Payment
Stages of Orchestration Development Define schemas 1 Define orchestration variables and types 2 Define send and receive ports 3 Add orchestration shapes 4 Assign or transform data 5 Build and deploy the orchestration 6 Configure bindings, enlist and start the orchestration 7 Test the orchestration 8
Importing and Exporting BPEL Importing BPEL Use to create an orchestration from BPEL Select BPEL import project type Run BPEL Import Wizard to select BPEL, WSDL, and XSD files Exporting BPEL Use to export an orchestration to BPEL Review export restrictions (restricted shapes) Modify orchestration properties for export Export to BPEL from Solution Explorer
Lesson 2: Building an Orchestration • What Is the Orchestration Designer? • Using Message and Data-Handling Shapes • Working with Messages in an Orchestration • Logical vs. Physical Ports • Creating and Configuring Orchestration Ports • Demonstration: Creating an Orchestration
What Is the Orchestration Designer? Orchestration View Process Area Port Surface Port Surface Properties Toolbox
Working with Messages in an Orchestration Use Orchestration View to define: Variables Ports and port types Correlation sets and correlation types Messages and multi-part message types Orchestration Messages Messages are variables Messages are immutable You must define a message forevery message instance used inan orchestration
Logical vs. Physical Ports 1 Orchestration 3 Logical Receive Port Receive Port Bind/Enlist Receive Location(Physical Address) 2 MessageBox Messages Subscriptions 5 Send Port(Physical Address) Logical Send Port 4 6
Creating and Configuring Orchestration Ports Orchestration Port Types • Identifier • Communication pattern • One-way or Request-Response • Modifier (internal, private, or public) • Operations • Message Types Port Binding Specify now Specify later Direct Dynamic
Demonstration: Creating an Orchestration In this demonstration, you will see how to: • Create message variables • Create and configure a receive shape • Create and configure a transform shape • Create and configure a send shape • Create a logical receive port • Create a logical send port
Lesson 3: Monitoring Orchestrations • Using the Group Hub to View Orchestrations • Using the Orchestration Debugger • Demonstration: Tracking an Orchestration Instance
Using the Group Hub to View Orchestrations Service Instance States Message Instance States Ready to run Scheduled Retrying Dehydrated Suspended, resumable Suspended, non-resumable Active In breakpoint Completed with discarded messages Consumed Delivered (not consumed) Suspended, resumable Suspended, non-resumable Undelivered Undelivered (retrying) Undelivered (scheduled)
Using the Orchestration Debugger Orchestration Debugger View a rendered orchestration Set breakpoints View specific variables and message data Continue and resume debugging
Demonstration: Tracking an Orchestration Instance In this demonstration, you will see how to: • Use the BizTalk Group Hub to track message activity through an orchestration
Lab: Creating a BizTalk Orchestration • Exercise 1: Import an Existing Schema and Map • Exercise 2: Create a New Project and Orchestration • Exercise 3: Create Orchestration Ports • Exercise 4: Build, Deploy, and Test the Solution