Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Correlation Question.
- This topic has 5 replies, 1 voice, and was last updated 6 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
March 30, 2006 at 10:14 PM #13268
Hey guys,
Here is the issue I am facing. I have an orchestration that receives an xml file. The business requirement just changed where my orchestration should wait on a companion text file before it processes.So, I get c.xml first and after sometime I will get c.txt. The file c.xml contains information about where c.txt needs to be routed to. What is the best way to implement this.
Thanks in advance
-
March 31, 2006 at 12:41 AM #13269
Ok, there has been a change. Here’s what I need to implement now.
1. I receive an XML Message such as:
<XML>
<ID>xxxxx</>
<Branch>0000</>
<Destination>Somewhere</>
<Data>………….</Data>
</XML>2. I extract the <Data> element, assemble it into a flat file(based on a schema), and send it to a drop location.
3. Someone will manually need to modify this file text file and send it back to my orchestration.
4. I then need to send it to the location in <Destination>
Do I need to use a convoy or just correlation? How can I correlate on a filename?
Thanks.
-
April 3, 2006 at 4:11 PM #13270
Thanks for the response. I am attempting to correlate by ReceivedFileName but it appears that BTS.ReceivedFileName returns the entire file path. Is there a way to change this message context to just the filename w/o the path?
I am not able to use anything in the message for correlation that’s why I am looking into the ReceivedFileName.
Thanks
-
April 7, 2006 at 4:02 PM #13271
Thanks. I was able to accomplish that by stripping FILE.ReceivedFileName in a custom pipeline component and promoting it as well. Works like a charm now.
If anyone else is looking to do the same thing, this blog site has good info on how to do just that (Look towards the end of the page)
http://geekswithblogs.net/synBoogaloo/
Thanks again
-
March 31, 2006 at 9:05 PM #13272
Sounds like you need a Correlation. Convoys are used in scenarios when you don’t have the Send Shape (to greatly simplify what a convoy is).
You can initialize your correction on the Send based on something inside the message or Received File Name. Then, use a Receive and a file drop in a different location to pick up the message. When someone updates the file, just have them move it to the new location.
Hope this helps.
-
April 5, 2006 at 2:24 AM #13273
One option is to create a simple pipeline component that reads the BTS.ReceivedFileName strips off the header and promotes just the filename into your own property. You should be able to correlate on your new property
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.