Hi Siva,
The TPE will not be-able to get the data within a loop as inside a loop,
activity items cannot be assigned to shapes. You will need to use a
mixture
of TPE and BAM API (BAM API called within your orchestration).
1. Create a parent profile based the main orchestration
2. Create a child profile based on the second orchestration where the
message is subscribing
3. In this child profile create a continuation Id
(http://blogs.msdn.com/keithlim/archive/2006/02/08/527227.aspx)
4. In the orchestration that contains the loop add an expression shape
which
calls the following code (edit for your own project):
OrchestrationEventStream.BeginActivity("[CHILD PROFILE NAME]",
activityId);
OrchestrationEventStream.UpdateActivity("[CHILD PROFILE NAME]",
activityId,
[DATA TO CAPTURE i.e. [FIELD NAME], [VALUE], [FIELD NAME], [VALUE]]);
OrchestrationEventStream.AddReference("[CHILD PROFILE NAME]", activityId,
"ReferenceType", "[PARENT PROFILE NAME]", parentId);
OrchestrationEventStream.EnableContinuation("[CHILD PROFILE NAME]",
activityId, "[CONTINUATION NAME]" + activityId);
OrchestrationEventStream.EndActivity("[CHILD PROFILE NAME]", activityId);
I found a couple of simple articles that should get you started:
http://blogs.msdn.com/dhtoran/archive/2005/06/28/433244.aspx
http://www.topxml.com/rbnews/BizTalk%20BAM,%20activity/re-30052_Capturing-BizTalk-2006-BAM-Data-On-Looping-Process.aspx
I will assume you know about deploying BAM profiles and the EOM. If you
need
any help on this let me know.
Note: Any BAM code, you may want to add that a helper class rather than
write the code directly within an expression shape.
Enjoy,
Samad


|