BizTalk Server Orchestration - correlation

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > December 2004 > correlation





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author correlation
Suresh.A

2004-12-21, 5:51 pm

Problem
---------------

I have two receiving ports which has to corelate with each other.
Both are polling into one shared folder into share point. My requirement is
such that if i have got one file in the first port, i have to correlate with
that other port such that it should take one specific file.

If I have got "xyz2004.xml" on port 1 , then I should get
"xyz2003.xml" on the next port 2. pls notice, the year has changed to 2003
(ie previous year file).

Is there any way so that I can correlate this ??




thanks yar

Suresh.A


Stephen W. Thomas

2004-12-22, 2:46 am

Hello.

It sounds like you have a Convoy scenario. i.e. multiple receives in a
races condition. If this is the case I do not think it is possible to
correlate on the items you want to do without some additional effort.

You might want to check out Charles’ blog on flexible correlation:
http://geekswithblogs.net/cyoung/articles/17364.aspx

That might give you some ideas that are more straight forward then what I am
thinking…

I would look at using a pre processing Orchestration on the received files
that will assign them some unique token id based on the type of correlation
it should belong to.

Example – Orchestration 1 would set a property on the message like:
abc2004.xml belongs to Token: 123
abc2003.xml belongs to Token: 123
bcd2004.xml belongs to Token: 124
bcd2003.xml belongs to Token: 124

You could make the logic as complex or simple as needed in a .net component.
Just pass in the received file name. You might have to have some table to
store past values and Tokens. Then, set up a Convoy to take in messages
based on the Token.

Hope this helps.

Stephen W. Thomas
http://www.geekswithblogs.net/sthomas


"Suresh.A" wrote:

> Problem
> ---------------
>
> I have two receiving ports which has to corelate with each other.
> Both are polling into one shared folder into share point. My requirement is
> such that if i have got one file in the first port, i have to correlate with
> that other port such that it should take one specific file.
>
> If I have got "xyz2004.xml" on port 1 , then I should get
> "xyz2003.xml" on the next port 2. pls notice, the year has changed to 2003
> (ie previous year file).
>
> Is there any way so that I can correlate this ??
>
>
>
>
> thanks yar
>
> Suresh.A
>
>

dotsuresh

2004-12-22, 3:29 am

Hi Stephen,

Thanks for your reply.

Currently I am working on the Convoy scenario.

I am using biztalk share point adapter for taking the file from sharepoint.

After comparison with the file which I got through the second port I have to place back the file into sharepoint itself, So I have put a send shape after the second receive.

Now what is happening after comparision with the second file, while sending back the second file to sharepoint, that section is not working.

currently the file is beging deleted. and the Orchestration goes hang.

I am attaching the Orchestration file with this.. pls change the extention to ".odx"

once again thanks for your reply.


Suresh.A
Stephen W. Thomas

2004-12-22, 8:53 pm

Hello.

I did not see anything that stood out as being wrong.

What is the exact error message you are getting when the Orchestration hangs?

Also, if you want to send me the full solution with schema and sample file I
can take a better look at it. Just send it to
swthomas@NOSPAMbiztalkgurus.com.

Stephen W. Thomas
http://www.geekswithblogs.net/sthomas


"dotsuresh" wrote:

>
> Hi Stephen,
>
> Thanks for your reply.
>
> Currently I am working on the Convoy scenario.
>
> I am using biztalk share point adapter for taking the file from
> sharepoint.
>
> After comparison with the file which I got through the second port
> I have to place back the file into sharepoint itself, So I have put a
> send shape after the second receive.
>
> Now what is happening after comparision with the second file, while
> sending back the second file to sharepoint, that section is not
> working.
>
> currently the file is beging deleted. and the Orchestration goes
> hang.
>
> I am attaching the Orchestration file with this.. pls change the
> extention to ".odx"
>
> once again thanks for your reply.
>
>
> Suresh.A
>
>
> +----------------------------------------------------------------+
> | Attachment filename: rsuiorchestration.txt |
> |Download attachment: http://www.webservertalk.com/attach...?postid=1903066 |
> +----------------------------------------------------------------+
>
>
> --
> dotsuresh
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message658981.html
>
>

dotsuresh

2004-12-23, 6:36 am

Hi Stephen,

I have send the full solution file to your swthomas@NOSPAMbiztalkgurus.com mail address. Sill I am getting


Uncaught exception terminated service RSUIBiztalk.RSUIOrchestration(a5e9cd1e-939b-d42a-31fc-85f7477c423a), instance 3e3d07c7-ac63-4ef4-a505-ad79736678a0

A failure occurred while evaluating the distinguished field Status against the message part data. The message part data does not contain at least one of the nodes specified by the XPath expression (listed below) that corresponds to the distinguished field. The cause for this error may be that the message part data has not been initialized or that the message part data does not conform to the message part schema. Ensure that the message part data is initialized correctly.
XPath expression: /*[local-name()='myFields' and namespace-uri()='http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-10-20T14-08-44']/*[local-name()='Status' and namespace-uri()='http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-10-20T14-08-44']

Exception type: XPathUpdateException
Source: Microsoft.XLANGs.Engine
Target Site: Void SetDistinguishedField(System.String, System.Object)
Help Link:
Additional error information:



For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Thanks for your help

Suresh
Suresh.A

2004-12-24, 5:49 pm

Hi Stephen,
I have send the solution file again.
I am able assign the correlation set values. But still I am not getting
the expected result.
Expecting a positive responce from you..

once again thanks for your help

Suresh.A

"Stephen W. Thomas" wrote:
[vbcol=seagreen]
> Hello.
>
> I didn’t get the email. Did you remove the NOSPAM part?
>
> I think the problem is when you are setting the Property in the Message
> Assignment shape. Does that field exist in that XML document? If not, you
> will get this error. If I remember correctly, it actually has to have a
> value in it in order to update it. It just can not exist and be blank.
>
> Take a look at that and let me know.
>
> Stephen W. Thomas
> http://www.geekswithblogs.net/sthomas
>
>
>
> "dotsuresh" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com