Understanding is – “Correlation is a process of relating an incoming message based on fields promoted and stored for its related messages, u can relate two messages based on some common property” .
There are three correlated messages exchange patterns:
• Traditional handshake• Sequential convoy
• Parallel convoy
I am going to try simple Traditional handshake scenario.
Step 1. Created a New Biztalk Project
Step 2. Now Input XML Schema is Created
Step 3. Add a child Field Element as mentioned below
Step 4. Add element OfferId and Promote it. Once you promote it promoted schema would be created
Step 5. Create Output XML Schema and promote OfferId Child Field Element
Step 6. Create an Empty Biztalk Orchestration and Create two messages based on Input and Output Schema
Step 7. Create Message2 based on Output Schema
Step 8. The steps we will create in orchestration and our objective is listed below
- ReceiveShape – Get Input based on input XML schema, Set Activate –True. (Message1)
- Send Shape – Send Input to a file share and enable correlation (Message1)
- ReceiveShape – Receive the output file and follow correlation (Message2)
- SendShape – Send the correlated message to destination file share (Message2)
Step 9. Create Correlation Type based on the promoted property offerid
Step 10. Create a Correlation Set based on Correlation Type
Step 11. Initialize Correlation Set for the Send Port
Step 12. Now add a Receive port and set follow correlation property
Step 13. Orchestration will look like below
Step 14. Build Application, Signin with Key, Deploy it
Step 15. Bind Ports and Assign Host. I have missed it in the picture
Step 16. Create sample files and drop in the source share with input xml.
Step 17. Create output file in the next receive share. Only matching offerid should reach the final share configured in the last send shape.
Step 17. Create output file in the next receive share. Only matching offerid should reach the final share configured in the last send shape.
I was able to learn it with guidance from my team. Happy Reading....
No comments:
Post a Comment