|
Home > Archive > BizTalk Server Tools > February 2006 > BAM - Related Activities
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 |
BAM - Related Activities
|
|
| BTSStudent 2006-02-14, 5:51 pm |
| Hi,
I have an orchestration that contains a couple of loops. This
orchestration is generic in that it is called multiple time for the
same activity (creating and order as well as updating that order) I am
trying to deploy a tracking profile for this.
As a first try I want to track a shape outside of the main loop and a
shape within the main loop.
I have defined 2 activities (a parent and a child).
Then, I established the relationship between them by matching the
Activity ID (order id) under the parent activity folder with the
relationship folder under the child activity folder.
Also renamed the Activity ID under the relationship folder to be called
the same as the activity id name under the parent activity folder.
When the TP is deployed, I have a situation where records are in the
"completed "table as well as "active" table for the same order id.
The orchestration instance is invoked twice per each order, once for
create and the second time for update.
I expected the same record in the "active" table to be updated through
the whole transaction.
Please advise.
Venkat.
| |
| Keith Lim 2006-02-17, 10:51 pm |
| Hi Venkat,
The result based on your setup is expected. The easiest way is retify your
issue to separate this into two orchestrations: one for initial processing
and the next for update.
Once you have got the simpler setup working, you can try the more difficult
ones.
If you really want to use the same orchestration for creation and update,
by calling it twice, you would need some logic in the orchestration to
control the flow. And to ensure that there is no duplicate of same
activity records, you would need to start this activity in the port
(receive pipeline) and resume it to the orchestration and then it can call
itself again for update.
Please let me know if this helps.
Thanks,
Keith Lim [MSFT]
--------------------[vbcol=seagreen]
22:12:30 GMT)[vbcol=seagreen]
CLR 1.1. 4322),gzip(gfe),gzip(gfe)[vbcol=seagreen
]
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!nntp.giganews.com!transit3.readnews.com!
news-out.readnews.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-f
or-mail[vbcol=seagreen]
Thanks,
Keith Lim [MSFT]
My BizTalk BAM Blog: http://blogs.msdn.com/keithlim/default.aspx
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
|
|
|
|
|