Presentation is loading. Please wait.

Presentation is loading. Please wait.

فصل : BizTalk فصل : BizTalk دوره SOA استانداری قم - جواد تقی زاده.

Similar presentations


Presentation on theme: "فصل : BizTalk فصل : BizTalk دوره SOA استانداری قم - جواد تقی زاده."— Presentation transcript:

1

2 فصل : BizTalk فصل : BizTalk دوره SOA استانداری قم - جواد تقی زاده

3 BizTalk چیست؟  Microsoft BizTalk Server (or simply "BizTalk") enables companies to automate business processes, through the use of adapters which are tailored to communicate with different software systems used in an enterprise. Created by Microsoft, it provides enterprise application integration, business process automation, business-to-business communication, message broker and business activity monitoring.Microsoft enterprise application integrationbusiness process automationbusiness-to-business message brokerbusiness activity monitoring  Human-centric processes cannot be implemented directly with BizTalk Server and need additional applications like Microsoft SharePoint server.Microsoft SharePoint

4 دوره SOA استانداری قم - جواد تقی زاده  Development for BizTalk Server is done through Microsoft Visual Studio.Microsoft Visual Studio  A developer can create transformation maps transforming one message type to another.  Messages inside BizTalk are implemented through the XML documents and defined with the XML schemas in XSD standard. MessagesXMLXML schemasXSD  Maps are implemented with the XSLT standard.XSLT  Orchestrations are implemented with the WS-BPEL compatible process language xLANG. OrchestrationsWS-BPELxLANG  Schemas, maps, pipelines and orchestrations are created visually using graphical tools within Microsoft Visual Studio.pipelines

5 دوره SOA استانداری قم - جواد تقی زاده سایت های مرجع  us/biztalk/aa aspx

6 دوره SOA استانداری قم - جواد تقی زاده Biztalk رقبای  IBM WebSphere ESB IBM WebSphere ESB  webMethods webMethods  Oracle SOA Suite Oracle SOA Suite

7 دوره SOA استانداری قم - جواد تقی زاده SOA Capabilities Framework Workflow Process BPM Protoco l EIS LOB Adaption Service Orientation Services SODA OperationalMgmt ServiceRegistry ServiceMgmt Management & Governance Process Design & Simulation Design & Dev Tools Integrated Tools CollaborationPortal User Interaction Federated Security Identity & Access BI Reporting BAM Brokered Communication Endpoint Metadata Standards Support Intelligent Routing Transformation Adaption Enterprise Service Bus

8 دوره SOA استانداری قم - جواد تقی زاده Microsoft Platform Overlaid Workflow Process BPMS Protoco l EIS LOB Adaption Service Orientation Services SODA OperationalMgmt ServiceRegistry ServiceMgmt Management & Governance Process Design & Simulation Design & Dev Tools Integrated Tools CollaborationPortal User Interaction Federated Security Identity & Access BI Reporting BAM Enterprise Service Bus Brokered Communication Endpoint Metadata Standards Support Intelligent Routing Transformation Adaption BizTalk Server Workflow Foundation WCF SSIS MOM Microsoft UDDI Server Systinet AmberPoint Visual Studio WF WCF MOSS

9 دوره SOA استانداری قم - جواد تقی زاده  Microsoft BizTalk Server 2010  Microsoft Stream Insight  SQL Server Integration Services  SQL Server Master Data Services  Windows Server AppFabric  Windows Azure Service Bus Relayed Messaging  SharePoint Business Connectivity Services  Windows Azure Service Bus Brokered Messaging  Windows Azure Service Bus EAI & EDI Product and frameworks

10 دوره SOA استانداری قم - جواد تقی زاده Microsoft BizTalk Server 2010 exchange of information business processes insight “Microsoft BizTalk Server is used to simplify and automate the exchange of information between publishers and subscribers, to orchestrate business processes and to supply insight into processes” Company A Applicatio n Internet BizTalk Server Company B

11 دوره SOA استانداری قم - جواد تقی زاده What does BizTalk do? 10 Solve integration challenges between systems, events, devices Automate integration processes Simplify building and managing these processes Capture, analyze and present process data BizTalk Does This…

12 دوره SOA استانداری قم - جواد تقی زاده The History of BizTalk Server 2002 BizTalk Server BizTalk Server BizTalk Server BizTalk Server 2006, R2.NET-based rewrite 2009BizTalk BizTalk Server 2000

13 دوره SOA استانداری قم - جواد تقی زاده Who uses BizTalk Server? 12 10,000+ Global Customers benefit from using BizTalk Server 23 of 27 EU governments use BizTalk Server to provide government services 81 % of the Global 100 are running BizTalk Server 6 of the 8 largest U.S. Pharmaceutical Companies use Microsoft BizTalk Server 4 of the 5 largest U.S. Electronics Parts Manufacturers use Microsoft BizTalk Server 9 of 10 largest U.S. Telecommunications Companies use BizTalk Server 9 of the 10 largest Aerospace and Defense Companies in the U.S. run BizTalk Server 5 of the 8 largest U.S. Chemical Companies run Microsoft BizTalk Server 4 of the 5 largest Railroads in the U.S. run Microsoft BizTalk Server 9 of the 10 largest Insurance Companies in the World run Microsoft BizTalk Server % of

14 دوره SOA استانداری قم - جواد تقی زاده Evolution of BizTalk Server BizTalk Server 2002 BizTalk Server 2004 BizTalk Server 2006 BizTalk Server 2006 R2 BizTalk Server 2009 BizTalk Server 2010 BizTalk Server Customers 2,000 Customers 4,000 Customers 7,000 Customers 8,500 Customers 10,500 Customers Messaging XML tools XLang Deployment Tools XSD EAI (partner adapters) Vertical B2B VS +.NET Messaging + Orchestration BRE Routing BAM Scale-out Simple configuration Adapters in box Runtime+ BAM+ SOA/ESB EDI/AS2 RFID WCF Adapter Pack Adapter SDK HIS 2006 BAHS ALM Support B2B Enhancements RFID Mobile Adapter Pack 2.0 ESB 2.0 Toolkit BAM+ Hyper-V Support HIS 2009 BAHS 2.0 Workflow Integration ESB 2.1 SharePoint 2010 BCS Data Mapper TPM Secure FTP Updated Swift and HIPAA SQL Server 2008 R2 Windows Server 2008 R2 HIS ,000 Customers

15 دوره SOA استانداری قم - جواد تقی زاده BizTalk Server آینده Committed to innovation in Integration 14 BizTalk Server Platform Support - Productivity improvements - B2B scenarios made easy BizTalk Server Integration with Cloud Services: - RESTful services - New Adapters and many improvements in existing adapters BizTalk PaaS - EAI Capabilities in the Cloud - EDI Capabilities in the Cloud - Build Hybrid Applications Available now2013Future ~12 years, 12,000+ customers 8 th release Regular updates months

16 دوره SOA استانداری قم - جواد تقی زاده BizTalk Server 2010 Editions 15 EditionDescription Enterprise For large organizations, trading hubs, and marketplaces Includes all application and technology adapters Unlimited internal applications Multiple processors and clustered deployments Standard For small to medium-sized organizations Includes all application and technology adapters Up to five internal applications Up to two processors Branch For remote locations of an organization Includes all technology adapters Single internal application Up to two processors Developer For development and testing uses Free license with same capabilities as Enterprise Edition

17 دوره SOA استانداری قم - جواد تقی زاده BizTalk Server Standard Edition SQL Server BizTalk Server Limited to two CPUs on one server Allows a maximum of five applications SQL Server BizTalk Server or

18 دوره SOA استانداری قم - جواد تقی زاده BizTalk Server BizTalk Server Enterprise Edition SQL Server … … BizTalk Server Allows multiple servers for reliability and scalability Allows an unlimited number of applications

19 دوره SOA استانداری قم - جواد تقی زاده BizTalk Roles 18 Knower of the entire system integration: backup and recovery plans, security, logging, message flow, communication interface… Using his knowledge as well as a programmer, the architect should know the capabilities and limitations of the tools at his disposal (BizTalk engine, BAM, BRE) and design projects making the best choices for each situation. BizTalk Architect A system administrator will have other concerns such as the health of servers and their activity (HAT - Health and Activity Tracking), he has overall responsibility for the BizTalk Environment, such as: installation, configuration and system maintenance, deploying and managing BizTalk Applications, monitoring (unlocking messages and processes or ensuring proper flow of messages), disaster recovery. BizTalk Administrator Implements and extends the basic functionalities, taking advantage of the different tools. Here there are many areas completely orthogonal and a programmer may not master them all at the same level: Orchestration, Adapters, Pipelines, Mappings, Functoids, Routing, Rules, Tracking, OLAP, and many more. BizTalk Developer

20 دوره SOA استانداری قم - جواد تقی زاده ESB (BizTalk) JMS Web Services (J2EE) Service Endpoints Domain C Service Registry ESB (BizTalk) 1. Web Service Request Arrives 2. ESB content-based Routing directs to Service Endpoint in Domain A 5. File picked up from ftp protocol. ESB processes and based on message itinerary properties invokes service ESB (BizTalk) 6. J2EE Web Service invoked ASMX. NET ES Service Endpoints Domain B WCF 4. Transformed message ftp’d to Domain C Domain A CRMLOBAS/400 Adapters Service Endpoints Integration Broker (BizTalk) 3. LOB & CRM apps invoked. Message context updated and output message transformed SOA Federated Example

21 دوره SOA استانداری قم - جواد تقی زاده BizTalk Server 2010 Integration Scenario 20 Suppliers Application Inventory Application Enterprise Resource Planning (ERP) Application Microsoft BizTalk Server 2010 IT Pros and Developers Manage and Operate Design and Implement RFI 5 5 EDI Messagin g Assign Supplier Policy Filter Tags Policy Re-stock Orders Orchestration Read Shipment RFID Tags Up-to-date KPIs in BAM Business Users Messagin g

22 دوره SOA استانداری قم - جواد تقی زاده BizTalk Server 2010 Runtime Architecture 21 Receive Port Orchestration XML EDI or Flat File Send Port Send Adapter Send Pipeline MessageBox Mapping TO: NWTraders (Flat file format) FROM: Fabrikam (XML format) Mapping FROM: Contoso (Flat file format) TO: Fabrikam (XML format) Receive Location Receive Adapter Receive Pipeline

23 دوره SOA استانداری قم - جواد تقی زاده Tools for Developers 22 Visual Studio 2010 Define Schemas Transform Data Process Messages Design Business Processes Customer Name Title Item ItemID Qty UnitPrice Record PO Status Date Field1 Field2 Field3 Field1 Field2 Header PO Status Field3 Item Order PO Date FieldA FieldB Detail Field1 Field2 Header PO Status Field3 Item Orchestration Designer Pipeline Designer BizTalk Mapper BizTalk Editor

24 دوره SOA استانداری قم - جواد تقی زاده Tools

25 دوره SOA استانداری قم - جواد تقی زاده  BizTalk Schema  BizTalk Map  BizTalk Pipeline  BizTalk Orchestration  BizTalk Adapters  Microsoft Business Rules  Business Activity Monitoring  Message Routing اجزای BizTalk

26 دوره SOA استانداری قم - جواد تقی زاده ارتباط بین اجزای BizTalk

27 Introduction to BizTalk Schemas

28 دوره SOA استانداری قم - جواد تقی زاده Supported BizTalk Schema Types 27 Message TypeDetails XML Supports native XML message types Defined in XML Schema definition language (XSD) Flat File Supports delimited or positional file formats XML tags used to represent values Tag information stored using the annotation capabilities of XSD EDI Specially formatted text message BizTalk supports EDIFACT and X12 formats XSD annotations used to define format Node StructureStartLength Description Delimited050 UnitPrice Delimited5010 Quantity Delimited6010 TotalPrice Delimited7010 ItemID Delimited8010 Status Delimited991 UnitPrice Item Description Quantity TotalPrice ItemID Status ISA:00: :00: :01: :01: :041201:1 217:U:00403: :0:P:*~GS:CT: : : :1217:128:X:004030~ST:831: ~BGN :00: : ~N9:BT: ~TRN:1: ~AMT:2:10

29 دوره SOA استانداری قم - جواد تقی زاده Flat File Structures 28 Delimited flat files Fields separated by a specified delimiter Have a common end-of-record terminator Fields separated by a specified delimiter Have a common end-of-record terminator John, Smith, 123 Main St., “Learning BizTalk Server 2010” Positional flat files Fields are fixed length Have a common end-of-record terminator Fields are fixed length Have a common end-of-record terminator John Smith 123 Main St. Learning BizTalk Server 2010

30 دوره SOA استانداری قم - جواد تقی زاده Testing a Schema 29 Create XML Validate XSD Validate XML

31 دوره SOA استانداری قم - جواد تقی زاده Using the Flat File Schema Wizard 30 Flat File Schema Wizard Graphical tool for defining flat file schemas Can define schemas for delimited or positional flat files Graphical tool for defining flat file schemas Can define schemas for delimited or positional flat files

32 دوره SOA استانداری قم - جواد تقی زاده Editor Overview 31

33 دوره SOA استانداری قم - جواد تقی زاده Creating XSD  Open Visual Studio 2005 (if you are using BizTalk 2006 and higher version)  Click on File -> New Project  Select BizTalk Projects and click on Empty BizTalk Application  Give a name and click OK  In the solution explorer, right click on the project and select Add -> New Item  Select Schema Files on the left pane and select Flat File Schema Wizard.  Refer to the screen shots for further processes.

34 دوره SOA استانداری قم - جواد تقی زاده Generating XML from the XSD  Right click on the Project and select Validate Schema  Once the validation is over, click on Generate Instance Message.  An empty XML file with sample data entry in accordance to the schema will be generated.  This XML file can be modified and used with any application that supports XML.

35 دوره SOA استانداری قم - جواد تقی زاده Flat File Schema Wizard  Refer to notes page for explanation

36 دوره SOA استانداری قم - جواد تقی زاده

37

38

39

40

41

42

43

44

45

46

47

48 Introduction to BizTalk Maps

49 دوره SOA استانداری قم - جواد تقی زاده  A map defines the correspondence between records and fields in two different schemas What Is a BizTalk Map? 48 Data Transformation Data Translation Data Transformation Data Translation Perform computational and other data operations Copy the data from one message to another Perform computational and other data operations Copy the data from one message to another Map Source Schema ItemID Qty UnitPrice PO Status Destination Schema PurchaseOrder PO_Numbe r Date Item_No Quantity Order_Status Date Change the format of data between messages Example: translate between a flat file and an XML file Change the format of data between messages Example: translate between a flat file and an XML file

50 دوره SOA استانداری قم - جواد تقی زاده Creating a Map by Using the BizTalk Mapper 49 BizTalk Mapper Destination Schema Integrated within Visual Studio Starts when a map is opened or added to a project Source and destination schemas must be part of the project or contained in a referenced assembly Integrated within Visual Studio Starts when a map is opened or added to a project Source and destination schemas must be part of the project or contained in a referenced assembly Map Grid Source Schema

51 دوره SOA استانداری قم - جواد تقی زاده Creating a Map by Using the BizTalk Mapper 50 Link TypeUsage Simple link (one-to-one) Create a single link by dragging and dropping Can be made between nodes or records Structure link (multiple) Create multiple links simultaneously Relevant schema structures must be the same Use when node names are different but order is the same (or similar) Name-matching link (multiple) Create multiple links simultaneously Record or field names must match Similar but not identical schema structures ItemID Record PO Status Order PO No Date Item No ItemID Record PO Status Order PO No Status Flag Item No Item Record PO Status Order Status Item PO

52 دوره SOA استانداری قم - جواد تقی زاده Basic and Complex Map Links 51 Mapping OperationUsage Basic Most common type of mapping Values simply copied from input message to output message Supports most types of transformations and translations Complex Records can occur multiple times for a single message (looping) Source schema must specify repeating element Compiler will automatically generate an XSLT for-each loop Order PO_Numbe r Date Item_No Quantity Order_Status ItemID Qty UnitPrice Record PO Status Date Field1 Field2 PO ID Status Order PO_Num Date FieldA FieldB Detail Item Items

53 دوره SOA استانداری قم - جواد تقی زاده Validating, Testing and Debugging a Map 52

54 دوره SOA استانداری قم - جواد تقی زاده Functoids  Functoids are functions that can be used with mapper.  The source data can be applied with functoids and transformed to destination friendly data.  Many functions for manipulating strings (concat, uppercase conversion etc), numbers (add,multiply etc), scientific functions (log, exponent etc), database are available.  Refer to the tool bar, the violet color box in the grid in the previous picture.

55 دوره SOA استانداری قم - جواد تقی زاده Data Manipulation with Functoids 54 Functoids Use to manipulate mapped data Can use predefined functoids or create custom functoids Custom functoids can call scripts Use to manipulate mapped data Can use predefined functoids or create custom functoids Custom functoids can call scripts Map Source Schema Destination Schema ItemID Qty UnitPrice Record PO Status Order PO Number Date Item No Quantity Order Status Date Total Price (..) X BizTalk Mapper Extensions UtilityPack: BizTalk Mapper Extensions UtilityPack: BizTalk Mapper Extensions UtilityPack is a set of libraries with several useful functoids to include and use it in a map, which will provide an extension of BizTalk Mapper capabilities.

56 دوره SOA استانداری قم - جواد تقی زاده Using Basic Functoids 55 Link functoids to fields 2 2 Drag functoid from Toolbox to map 1 1

57 دوره SOA استانداری قم - جواد تقی زاده  Use pages to reduce complexity of a map Using Map Grid Pages 56 Grid Pages Grid Preview Grid Pages Grid Preview Create unlimited different pages Isolate different parts of a map Work with different parts of a map separately Must create connected functoids on the same layer Create unlimited different pages Isolate different parts of a map Work with different parts of a map separately Must create connected functoids on the same layer Page 4Page 3Page 2Page 1 ItemID Qty UnitPrice Record PO Status Order PO Number Date Item No Quantity Order Status Destination Schema Source Schema Date Total Price (..) Find and work with a portion of a large map X

58 دوره SOA استانداری قم - جواد تقی زاده Editor Overview 57

59 دوره SOA استانداری قم - جواد تقی زاده

60 Introduction to BizTalk Pipeline

61 دوره SOA استانداری قم - جواد تقی زاده What Is a Pipeline? 60 Receive Pipeline Send Pipeline Orchestration Pipeline Components Use pipelines to: Normalize data from various formats to XML Translate data from XML to various formats Assemble and disassemble documents Decode and encode documents Decrypt and encrypt documents Assign and verify digital signatures Normalize data from various formats to XML Translate data from XML to various formats Assemble and disassemble documents Decode and encode documents Decrypt and encrypt documents Assign and verify digital signatures

62 دوره SOA استانداری قم - جواد تقی زاده Pipeline Scenarios 61 Receive Pipelines: Decrypt inbound messages from trading partners Split batched messages Validate messages against known schemas Verify the sender of a message for non- repudiation Create custom processors to extend built-in functionality Decrypt inbound messages from trading partners Split batched messages Validate messages against known schemas Verify the sender of a message for non- repudiation Create custom processors to extend built-in functionality Send Pipelines: Encrypt outbound messages to trading partners Digitally sign outbound messages Provide a wrapper for outbound messages Validate messages against known schemas Encrypt outbound messages to trading partners Digitally sign outbound messages Provide a wrapper for outbound messages Validate messages against known schemas

63 دوره SOA استانداری قم - جواد تقی زاده Receive Pipeline Stages 62 Decode Drop Here! ! Disassemble Drop Here! ! Resolve Party Validate Drop Here! ! Drop Here! ! Disassemble Use to parse or disassemble components Use to probe messages and verify context properties BizTalk Server includes an XML, flat file, and a BTF disassembler Use to parse or disassemble components Use to probe messages and verify context properties BizTalk Server includes an XML, flat file, and a BTF disassembler Validate Use to validate the format of an XML message Use to compare a message to a known schema Use to validate the format of an XML message Use to compare a message to a known schema Resolve Party Use to verify the sending party for a received message Use with public certificates to validate sender Use to verify the sending party for a received message Use with public certificates to validate sender Decode Use to decode or decrypt messages Use when secure document exchange is required BizTalk includes a MIME/SMIME Decoder Use to decode or decrypt messages Use when secure document exchange is required BizTalk includes a MIME/SMIME Decoder

64 دوره SOA استانداری قم - جواد تقی زاده Send Pipeline Stages 63 Drop Here! ! Pre-Assemble Drop Here! ! ! AssembleEncode Pre-assemble Use to process a message before it is sent Use for custom components only Use to process a message before it is sent Use for custom components only Encode To encode or encrypt messages Use when secure document exchange is required BizTalk includes a MIME/SMIME decoder To encode or encrypt messages Use when secure document exchange is required BizTalk includes a MIME/SMIME decoder Assemble Use to assemble or serialize a message Use to convert a message from XML to native format Use to assemble or serialize a message Use to convert a message from XML to native format

65 دوره SOA استانداری قم - جواد تقی زاده What Are the Default Pipelines? 64 PipelineUsage Pass-Through Receive (PassThruReceive) Contains no components No decoding, disassembling, or validation required Pass-Through Send (PassThruTransmit) Contains no components No encoding or assembling required Use for basic message routing XML Receive (XMLReceive) Contains the XML disassembler component Party resolution component for security No decoding or validation stage XML Send (XMLTransmit) Contains the XML assembler component Other stages empty by default

66 دوره SOA استانداری قم - جواد تقی زاده Using the Pipeline Designer 65 Pipeline Files Properties Window Design Surface Toolbox

67 Introduction to BizTalk Orchestration 66

68 دوره SOA استانداری قم - جواد تقی زاده What Is BizTalk Server Business Process Automation? 67 Transformation of critical business activities from manual to automated processing Increases coordination, higher productivity, and better efficiency Implemented through BizTalk orchestrations and the Business Rule Engine Transformation of critical business activities from manual to automated processing Increases coordination, higher productivity, and better efficiency Implemented through BizTalk orchestrations and the Business Rule Engine

69 دوره SOA استانداری قم - جواد تقی زاده Modeling a Business Process 68 Buyer Organization Vendor Organization Procurement App Finance App UserPO Approver Invoice Approver Purchase request PO request approval Purchase order Purchase order acknowledgement Shipping order Invoice Invoice request approval PO approval Request acknowledgement Vendor Warehouse Cancel Purchase request PO Canceled

70 دوره SOA استانداری قم - جواد تقی زاده What Is an Orchestration? 69 BizTalk Server Port Surface <<>> Port Surface ReceivePOPort Operation_1 -> Request Check Quantity Denied Else Denied Msg Transform SendDeniedPort Operation_1 <- Request SendApprvPor t Operation_1 -> Request Receive PO Send_Denied Orchestration Designer Is a visual design environment Provides implementation shapes for modeling automated business processes Saves business process model for later compilation Is a visual design environment Provides implementation shapes for modeling automated business processes Saves business process model for later compilation BizTalk Orchestration Is a run-time engine Executes business processes Is a run-time engine Executes business processes Compile and Deploy Send_Approve

71 دوره SOA استانداری قم - جواد تقی زاده How the BizTalk Orchestration Engine Works 70 Orchestration Engine Orchestration engine Creates orchestration instances Maintains state of orchestrations Performs resource optimizations Provides reliable shutdown and recovery Creates orchestration instances Maintains state of orchestrations Performs resource optimizations Provides reliable shutdown and recovery MessageBox Rehydrat e Dehydrat e

72 دوره SOA استانداری قم - جواد تقی زاده Orchestrating a Business Process 71 Buyer Organization Vendor Organization Procurement App Finance App UserPO Approver Invoice Approver PO request approval Shipping order Invoice Vendor Warehouse BizTalk Request acknowledgement Purchase request PO approval Purchase order acknowledgement Invoice request approval Purchase order Invoice approval Payment

73 دوره SOA استانداری قم - جواد تقی زاده Scope and Group Shapes 72 Group Scope Framework for organizing actions Used for exception handling and transactional execution Contains one or more blocks Can have appended exception-handling blocks Can have appended compensation blocks if transactional Framework for organizing actions Used for exception handling and transactional execution Contains one or more blocks Can have appended exception-handling blocks Can have appended compensation blocks if transactional Visually group shapes Collapsible Not saved as code Visually group shapes Collapsible Not saved as code Process Loan Orchestration Scope Receive Loan Application Request Credit Report Order Appraisal Sign Document s Exception Handlers Compensation

74 دوره SOA استانداری قم - جواد تقی زاده Orchestration Flow Control Shapes 73 ShapeUse Decide To represent If/Else logic Define rule for each branch Delay To control the timing of the orchestration Specify pause time or predefined date or time Listen To wait for events to occur before proceeding Must use Receive or Delay as the first shape Follows the first condition met in the branch Can use as many branches as needed Delay Drop a shape from the toolbox here Listen Check Quantity Drop a shape from the toolbox here RuleElse Drop a shape from the toolbox here

75 دوره SOA استانداری قم - جواد تقی زاده Orchestration Flow Control Shapes (continued) 74 ShapeUse Loop To repeat actions while a condition is met Use Expression Editor to set the condition Parallel Actions Ensures that all branches complete before continuing Single-threaded execution. Does not run branches concurrently Used primarily for coordinating multiple receive shapes Suspend To suspend a running orchestration Use Expression Editor to set the condition Administrator intervention required to resume Terminate To end a running orchestration immediately Can specify an error message string to help diagnosis Loop Drop a shape from the toolbox here SuspendTerminate Drop a shape from the toolbox here Parallel Actions

76 دوره SOA استانداری قم - جواد تقی زاده Expression and Exception Shapes 75 ShapeUse Expression Enter any expression in an orchestration Use Expression Editor to define expression Throw Exception Explicitly throw an exception Exceptions are caught at present scope or at the next containing scope Expression Throw Exception

77 دوره SOA استانداری قم - جواد تقی زاده Nesting Orchestrations 76 Invokes another orchestration asynchronously Can pass in parameters Calling orchestration continues processing Invokes another orchestration asynchronously Can pass in parameters Calling orchestration continues processing Start Orchestration Invokes another orchestration synchronously Can pass parameters in and out Calling orchestration waits Invokes another orchestration synchronously Can pass parameters in and out Calling orchestration waits Call Orchestration

78 دوره SOA استانداری قم - جواد تقی زاده What Is the Orchestration Designer? 77 Process Area Port Surface Port Surface Toolbox Port Surface Port Surface Orchestration View Properties

79 دوره SOA استانداری قم - جواد تقی زاده Create the Orchestration  Right click on the project icon in the Solution Explorer window and select Add -> Add New Item.  Select BizTalk Orchestration from the templates list box.  Name the Map as HelloOrchestration.bt m

80 دوره SOA استانداری قم - جواد تقی زاده

81

82

83 6. Create Setup.bat to deploy the project and bind the ports SolutionName= AssemblyKeyFile= BindingFileName= SendPortName= ReceiveLocationName= FileReceiveLocation= FileSendAddress= NOT EXIST %AssemblyKeyFile% sn -k %SolutionName% /Deploy Development /Out Import Binding=%BindingFileName% /NoLogo "..\..\Admin\WMI\Start Send Port\VBScript\StartSendPort.vbs" %SendPortName% /NoLogo "..\..\Admin\WMI\Enable Receive Location\VBScript\EnableRecLoc.vbs" %ReceivePortName% %ReceiveLocationName% /NoLogo "..\..\Admin\WMI\Enlist Orchestration\VBScript\EnlistOrch.vbs" %OrchestrationName% %AssemblyName%

84 دوره SOA استانداری قم - جواد تقی زاده 7. Test the application  Create a sample XML file to use it as input. Name it SamplePOInput.xml  Copy and paste this XML code into the new created file 1234 $19.99  Copy the new file into the In folder.  Check the Out folder for results. You should get a new xml file that should look like this: 1234 $19.99

85 دوره SOA استانداری قم - جواد تقی زاده مثال

86 Introduction to BizTalk Adapters 85

87 دوره SOA استانداری قم - جواد تقی زاده What Is an Adapter? 86 Adapters.NET or COM software components Connect BizTalk to specific applications and systems Can use standard protocols (HTTP, FTP, POP3) Can use proprietary communication mechanisms Support one-way or two-way communications Add metadata to data stream of received messages.NET or COM software components Connect BizTalk to specific applications and systems Can use standard protocols (HTTP, FTP, POP3) Can use proprietary communication mechanisms Support one-way or two-way communications Add metadata to data stream of received messages

88 دوره SOA استانداری قم - جواد تقی زاده Sources of Adapters 87 Adapter Sources Standard BizTalk Server 2010 adapters Microsoft add-on adapters Third-party adapters Custom adapters Standard BizTalk Server 2010 adapters Microsoft add-on adapters Third-party adapters Custom adapters List of Custom Adapters: custom-adapters.aspx custom-adapters.aspx List of Third-Party Adapters: third-party-adapters.aspx third-party-adapters.aspx

89 دوره SOA استانداری قم - جواد تقی زاده BizTalk 2010 – Adapters 88

90 دوره SOA استانداری قم - جواد تقی زاده BizTalk 2010 – Adapters 89 Works for any.Net application!

91 دوره SOA استانداری قم - جواد تقی زاده Configuring an Adapter 90 File adapter properties

92 دوره SOA استانداری قم - جواد تقی زاده Integrating with WCF Adapters 91 WCF-NetMsmq adapter properties

93 Introduction to Microsoft Business Rules 92

94 دوره SOA استانداری قم - جواد تقی زاده What Are Business Rules? 93 Business Rule Engine: Enables policy changes in real time Enables policy changes without recoding or rebuilding the orchestration Enables policy changes in real time Enables policy changes without recoding or rebuilding the orchestration Use business rules to: Trigger notifications Automate approvals Reroute documents Trigger notifications Automate approvals Reroute documents Business EventBusiness DecisionsRules Receive Purchase Order Is customer known? If customer ID exists, then customer is known Is product known? If product ID exists, then product is known Is product available and in inventory? If quantity on hand < reorder quantity, then reorder product

95 دوره SOA استانداری قم - جواد تقی زاده What Are Rules, Policies, and Vocabularies? 94 TermDescription Rules Set of conditions and one or more consequent actions Return either True or False Policy Contains a logical grouping of rules Published and deployed to a production environment Vocabulary Collection of definitions for rule conditions and actions Assigns a friendly name to the definition

96 دوره SOA استانداری قم - جواد تقی زاده How Rules and Facts Work 95 Facts derived from: XML schemas SQL databases.NET classes Predefined and custom vocabularies XML schemas SQL databases.NET classes Predefined and custom vocabularies Rules Conditions: true/false expression with predicates Actions: initiated when rule condition is met Facts: data upon which rules operate Conditions: true/false expression with predicates Actions: initiated when rule condition is met Facts: data upon which rules operate Policy Rule Set Rules

97 دوره SOA استانداری قم - جواد تقی زاده Business Rules Orchestration Scenarios 96 Post-Processing Preprocessing Call rule engine for dynamic or variable delays Call rule engine and determine path Call rule engine to dynamically determine which orchestration to process the next step Decision Branch Rule Else LogicA LogicB Post-Processing Preprocessing Rule-Based Delay { } Call Rules Rule-Based Send

98 دوره SOA استانداری قم - جواد تقی زاده Identifying Business Rule Personas 97 Developers Integrate policies within an orchestration Define policies and vocabularies Integrate policies within an orchestration Define policies and vocabularies Information Workers Use business vocabularies to design and test policies Administrators Secure, deploy, and migrate policies Track policy execution Secure, deploy, and migrate policies Track policy execution

99 دوره SOA استانداری قم - جواد تقی زاده Composing Business Rules 98 Create versions of vocabularies Create vocabulary definitions Compose policies Publish vocabularies and policies Create versions of vocabularies Create vocabulary definitions Compose policies Publish vocabularies and policies Rule Composer Policies Definitions Vocabularie s

100 دوره SOA استانداری قم - جواد تقی زاده BizTalk Capabilities Flexibility - Business Rule Engine Business Analyst Composes Rule Developer Links to Policy

101 Introduction to Business Activity Monitoring 100

102 دوره SOA استانداری قم - جواد تقی زاده Gaining Visibility into Business Processes 101 Order Process Milestones What is the average cycle duration per order? How many orders processed were over $10,000? What is the order trend for product XYZ over the past 24 hours? Business Analyst Received Order Cancelled Order Delivered Order

103 دوره SOA استانداری قم - جواد تقی زاده What Is Business Activity Monitoring (BAM)? 102 Real-Time Monitoring Business Processes Business Activity Monitoring Databases Business Analyst BAM allows users to: View aggregate data related to thousands of instances of a business process View a single instance of a business activity Browse to related instances of business activities Search for instances of a specific business activity Browse aggregations by using key performance indicators (KPIs) Filter activities at a given stage of completion Define charts, reports, KPIs, and alerts View aggregate data related to thousands of instances of a business process View a single instance of a business activity Browse to related instances of business activities Search for instances of a specific business activity Browse aggregations by using key performance indicators (KPIs) Filter activities at a given stage of completion Define charts, reports, KPIs, and alerts

104 دوره SOA استانداری قم - جواد تقی زاده Enabling Business Activity Monitoring (Analyst) 103 Analyst defines: Events and data to be tracked Logical groupings and aggregations of tracked data views Events and data to be tracked Logical groupings and aggregations of tracked data views Use BAM Activity Wizard to define: Activities  Milestones  Data points Views  Durations  Dimensions  Measures Activities  Milestones  Data points Views  Durations  Dimensions  Measures

105 دوره SOA استانداری قم - جواد تقی زاده Enabling Business Activity Monitoring (Developer) 104 Tracking Profile: Has characteristics that define a business-related process Contains a mapping between an orchestration and activity definition Has characteristics that define a business-related process Contains a mapping between an orchestration and activity definition Use Tracking Profile Editor to: Create and modify tracking profiles Select orchestration shapes Select schema elements Link multiple activities together Modify existing tracking profiles as long as the activity has not changed Create and modify tracking profiles Select orchestration shapes Select schema elements Link multiple activities together Modify existing tracking profiles as long as the activity has not changed

106 دوره SOA استانداری قم - جواد تقی زاده What Is the BAM Portal? 105

107 Introduction to Message Routing 106

108 دوره SOA استانداری قم - جواد تقی زاده The Publish and Subscribe Architecture 107 Receive Location Messages received, processed, and published to the MessageBox database 2 2 A filter expression defines properties of messages in which each subscriber is interested. 1 1 Message properties are evaluated to determine which subscribers require a copy of the message 3 3 XML or Flat File A copy of the message is delivered to each subscriber 4 4 Receive Adapter Receive Pipeline XML Subscribe d Business Process Subscribe d Message Databas e Send Port

109 دوره SOA استانداری قم - جواد تقی زاده What Is the MessageBox Database? 108 Administration Tasks Adding a new MessageBox database Disabling new message publication Deleting a MessageBox from a BizTalk group Adding a new MessageBox database Disabling new message publication Deleting a MessageBox from a BizTalk group MessageBox Database Stores subscription information Delivers messages to subscribers Stores the queues and state tables for each BizTalk host Stores messages and message properties Stores subscription information Delivers messages to subscribers Stores the queues and state tables for each BizTalk host Stores messages and message properties

110 دوره SOA استانداری قم - جواد تقی زاده What Is Message Routing? 109 Receive Location Receive Adapter Send Port C Receive Pipeline MessageBox Database Send Port B Send Port A PO Message Message Routing Routes directly to a port Based on a filter expression Configured on the send port Routes directly to a port Based on a filter expression Configured on the send port Filter ExpressionPort If CustomerName = ContosoA If Price > 1000B If Qty > 500 and Price < 1000C

111 دوره SOA استانداری قم - جواد تقی زاده What Is a Port? 110 Ports specify: How messages are sent and received by BizTalk The communication direction and communication pattern The location where messages are received or sent How messages are sent and received by BizTalk The communication direction and communication pattern The location where messages are received or sent MessageBox Database Receive Port Send Port Maps Receive Location

112 دوره SOA استانداری قم - جواد تقی زاده What Is Property Promotion? 111 Property promotion Fields that you choose to promote within a message instance Makes the data in the field accessible to BizTalk services Quick promotion automatically creates a property schema Fields that you choose to promote within a message instance Makes the data in the field accessible to BizTalk services Quick promotion automatically creates a property schema

113 دوره SOA استانداری قم - جواد تقی زاده Configuring a Receive Port and Receive Location 112 Receive location properties: Receive handler (host) Enabled or disabled Start/stop receiving (date) Operating window (time period) Receive handler (host) Enabled or disabled Start/stop receiving (date) Operating window (time period)

114 دوره SOA استانداری قم - جواد تقی زاده Creating and Configuring a Send Port 113 Send port properties: Send port name Primary and secondary transport Address (URI) Retry count Service window enabled/disabled Send port name Primary and secondary transport Address (URI) Retry count Service window enabled/disabled

115 دوره SOA استانداری قم - جواد تقی زاده Configuring Send Port Filters 114 Filtering Filter messages based on an expression Route to a send port Example: If the Amount is greater than or equal to $500, forward the message to a folder for approval Use to subscribe to failed messages Filter messages based on an expression Route to a send port Example: If the Amount is greater than or equal to $500, forward the message to a folder for approval Use to subscribe to failed messages Create filter expression 1 1

116 دوره SOA استانداری قم - جواد تقی زاده Physical Ports vs. Logical Ports Physical ports are used to receive and send messages between BizTalk Server and the outside world. Physical ports are configured and managed by using BizTalk Explorer. Logical ports are used within BizTalk Server to pass messages to and from a BizTalk orchestration. Logical ports are configured by using Orchestration Designer and appear on the Port Surface areas.

117 دوره SOA استانداری قم - جواد تقی زاده فراخوانی یک Orchestration از asp.net


Download ppt "فصل : BizTalk فصل : BizTalk دوره SOA استانداری قم - جواد تقی زاده."

Similar presentations


Ads by Google