|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Announcements
Chapters
Feature Zones
|
Introduction - First things first!When I first started learning BizTalk, I was looking for an article that could quickly show me how to build a simple orchestration (also known as "Business Process"). Unfortunately, I was unable to find one, so this is my attempt at demonstrating a simple orchestration. Please note that BizTalk Server 2004 is being used in the entire article. Loan processing application - orchestration demoLet us consider a simple loan processing request, where in a customer applies for a loan, and the loan request is either "APPROVED" or "REJECTED" based on the customer's ability to repay the loan. Loan processing - business process
Creating the BizTalk project - "LoanProcessing"Now let's start. Create a new BizTalk Server project in Visual Studio. Step 1: In the Visual Studio .NET menu, select the File -> New -> "Blank Solution" and type the name " Step 2: In the Solution Explorer, right click on the solution name " Building the schemasWe need to create two schemas; one is the "Loan Request" and other for "Loan Response". At the end of this section we would be ready with the following artifacts:
Loan request schemaStep 3: Right-click on the project in the Solution Explorer and select the "Add New Item" option. Then, select the item "Schema" and name it "
Please look at the image below and confirm your schema file: Loan response schemaStep 4: Right-click on the project in the Solution Explorer and select the "Add New Item" option. Then, select the item "Schema" and name it "
Building the mapWe need to build a map which would transform a loan request XML document into a loan response XML document. A map in BizTalk is a behind-the-scene XSLT file. Step 5: Right-click on the project in the Solution Explorer and select the "Add New Item" option. Then, select the item "Map" and name it " Step 6: Click on the left link "Open Source Schema" and select "
public string LoanProcessing(int loanAmount, int assetValue)
{
if ( loanAmount < assetValue)
{
return "APPROVED";
}
else
{
return "REJECTED";
}
}
Building the orchestration (also known as a "Business Process")In an orchestration, a message is the unit of processing. A "message" will always be processed. A "message" can be of any XML schema type. In this project, we have defined two schemas, so ideally we would have two messages in this orchestration. Step 7: Right-click on the project in the Solution Explorer and select the "Add New Item" option. Then, select the item "BizTalk Orchestration" and name it " Step 8: Place three shapes on the "Orchestration Surface":
Step 9: Create two messages:
Step 10: Setting the properties for all the shapes:
Step 11: Create two ports (a receive port and a send port).
Step 12: Strong name and deployment!!
Step 13: Refresh - BizTalk Explorer and create send port and receive locations.
Step 14: Test the solution
Quick takeaways
LicenseThis article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below. A list of licenses authors might use can be found here About the Author
General News Question Answer Joke Admin
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||