Posts

Showing posts with the label BAM

Using the BAM API to write BAM events from orchestrations

One of the easiest ways to update a bam activity from an orchestration is to use the BAM API, Simply add reference to Microsoft.BizTalk.Bam.EventObservartion Microsoft.BizTalk.Bam.XLANGs to your project and you are ready to start. In the basic level you have to start, update and end an activity. Start Activity I reccomend creating variables for activity name and instanceID, To avoid any confutions. The Activity name must match the Activity name created and deployed using bm.exe. (I will create a seperate post for this) The code in start-bam-expression-shape in orchestration PreProcessInvoice will then look something like this: activityName = ("ProcessInvoice"); //this is the activity we are loading data into activityInstance = System.Convert.ToString(System.Guid.NewGuid())+"PreProcessInvoice" ; //if bamming to same activity from different orchestration, we may track where the data is comming from by adding orchestration name. Microsoft.BizTalk.Bam...

Adding BAM add-in in Excel

Image
If you need to add the BAM add-in to excel there are a few simple steps to follow. Open the option section in excel Go to the Add-Ins pane and click the Manage Add-Ins button Brows to the addin file C:\Program Files\Microsoft BizTalk Server 2013 R2\ExcelDir\Bam.xla and press ok. Then you have the BAM add-ins ready for use in excel

BAM Portal - Service Unavailable

Image
From time to time I get the 'HTTP Error 503 - The Service is nnavailable' when I try to access my BAM portal Usually I spend a few minutes before I remember how to get past this. It is the account configured to run bam that needs to have its password updated. Most of you should change yor password on a regular basis, and its easy to forget to reconfigure BAM with the new passord. So.. here is the solution: Open Microsoft BizTalk ServerConfiguratiuon tool and update the password for the user running BAM portal Apply configuration, restart ISS to be sure (iisreset) and voia : BAM portal up and runnign again

The key to Continuations in BAM

When a solution needs BAM, and you what to link the receivedTime and sendTime together you have to use continuation. I have learned from my fellow BizTalk developer Knut Sølve Furset Urke an easy way to rememer ho how to do this. In the TPE you add a Continuation and a ContinuationID. Rename the ContinuationID to Continuation. There will now be to Continuation, but with different icons The way to think of this is: When a message is received you get an ID. So you set the portmappings on Continuation to received port. When the message is send you need a key to unlock the ID, so you set the Continuation ( former ContinuationID) portmappings on the to sent port. There is a key in the icon bedise Continuation ID with a key in it. deploy and enjoy