次の方法で共有


BizTalk 2006 *Officially* Released, Demo of Pipeline Feature

Wow, we just announced today that BizTalk Server 2006 released (press release, also see Virtual Press Room, new BizTalk home page) just as we planned. Instead of this just being a "BizTalk is out" post, I wanted to also show a cool way to use pipeline-instance configuration to send HTML email.

I spent last week doing a BizTalk Proof of Concept project with some customer buddies (hi Perry and Dan) in Los Angeles last week, and actually came away with a few things I plan on showing here. The first, we'll cover here. The second, using the BAM API on a looping orchestration process, we'll cover Wednesday.

So it's super that you can set an SMTP send port to use a static HTML file for sending messages out. However, it's a bit inflexible if you have dynamic content you wish to insert into the message (personalization, message-level details, etc). One very elegant way I decided to get around this issue is explained here. I used the XSLTransform SDK project, combined with the pipeline-instance configuration to send a variety of messages out.

First, you build the XSLTransform component and put it in the /Program Files/Microsoft BizTalk Server 2006/Pipelines directory. Remember that these components DO NOT have to be GAC'ed and need to be in this location to be seen by BizTalk.

Next, we add a Send Pipeline to our BizTalk project. Add our new XSLTransform pipeline component to the palette, and then drag it to the Encoding stage of the pipeline. This component exposes a property called XsltFilePath. This pipeline component uses that path to load up an XSL document, apply it to the message in the pipeline, and, set the content of the outbound message to an html type for email.

Next, I authored four different XSL files. Each one take various properties from the XML message and puts the data into a nice HTML format.

Then, I can go into my Send Port in the BizTalk Administration Console, choose my project's Send Pipeline, and, click the ellipse button next to it. This new feature enables you to make changes to the pipeline associated with THIS Send Port instance. So instead of using countless different Pipelines that have one minor difference, you can reuse the same Pipeline and simply configure the port-specific settings on each one! Now, you could actually do this in BizTalk 2004, but you had to go through the BizTalk API, and it was a bit messy. This is much cleaner and more intuitive.

Now when my workflow process runs, I can send emails out that are targeted in content and message. And most importantly, if I want to change ANY aspect of that email (content, format, etc), all I need to do is tweak an XSL file, and that's it! No redeploying components, orchestrations or configuration settings. Sweet.

So now we have a clean, low-code solution that is very easy to maintain, and provides a better experience than just sending out static HTML.

And don't forget to tune in today for my riveting webcast on the new features of the BizTalk 2006 Messaging Engine.

UPDATE: Download XSLT files here.

Comments

  • Anonymous
    March 27, 2006
    The comment has been removed
  • Anonymous
    March 27, 2006
    Hey Jeff,

    Good call.  Just updated the post to link to the XSLT files (at the bottom).
  • Anonymous
    March 27, 2006
    Nice, but when will the RTM be available to download off MSDN?

    Thanks!
  • Anonymous
    March 27, 2006
    Don't have an exact date for you, as once RTM occurs, it takes a few days to trickle through all the distribution channels.  I actually can't even find it on our internal distribution site yet!  So, hopefully by end of week.
  • Anonymous
    March 27, 2006
    Actually, just saw on our Team Blog that we hope to have it up on MSDN today or tomorrow.  Nice!
  • Anonymous
    March 27, 2006
    The comment has been removed
  • Anonymous
    March 27, 2006
    Hey Rolando.  As soon as I get my hands on the bits, I'll check it out.  If it's not physically in the BTS 2006 download, then it must be available as a separate, free download.  We'll see ...
  • Anonymous
    March 29, 2006


    While working on a BizTalk POC last week, I needed to track Business Activity Monitoring (BAM) data...