Home Page › Forums › BizTalk 2004 – BizTalk 2010 › BizTalk BAM issue
- This topic has 2 replies, 1 voice, and was last updated 9 years, 1 month ago by
community-content.
-
AuthorPosts
-
-
July 25, 2008 at 12:45 PM #20242
Hi,
I need to develope BAM for existing production projects. Some project have looping in orchestration.
I am new to BAM dev. Could you give me some idea on how can I build this?I did some research on web and SDK. According to research, I guess I need to create 2 activities, one for parent and other one for inside loop. I need to related them somehow. I dont know how can i do that without touching projects.
It looks like I have to do some coding in each project’s orchestration to relate both activies, but i cannot do that since it will be too much work to modify all the projects and release them on production again. (Pleae correct me if i am wrong)Could you help me to solve this issue?
Thank you in advance,
Siva -
July 31, 2008 at 9:03 AM #20282
If you’re dealing with looping, and need to capture something within the loop, you’ll have to change the orchestration to use the BAM API (http://blogs.msdn.com/richardbpi/archive/2006/03/29/564114.aspx). Don’t think there’s any way around that.
-
July 31, 2008 at 10:51 AM #20285
Thank you Richard,
I followed that link, however I dont see any record under the “related activities” on BAM. I used the msgID as ActivityID for parent activiy and used that in AddRelatedActivity.
I have the following before loop start:
msgID = inputMsg(BTS.MessageID);
Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.BeginActivity(“Process Activity”,msgID);
In side the loop, I have following coding
Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.BeginActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber);
Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.UpdateActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber,”Begin”,System.DateTime.Now,”DocID”,msgID);
After mapping donw I have following
Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.UpdateActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber,”EndSuccess”,System.DateTime.Now);
Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.AddRelatedActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber,”Process Activity”,msgID);
Microsoft.BizTalk.Bam.EventObservation.OrchestrationEventStream.EndActivity(“ProcessLoopActivity”,singleInvoiceMsg.InvoiceNumber);
I have map for both acivity as well. I deployed them too. I have seprate view for both just for testing purpose. I could see records under the ProcessActivityLoop view but not under the “Process Activity’s related actvity section.”
Am I doing anything wrong here?
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.