Martijn's blog - E-Commerce, EAI, BizTalk and .NET

2004/08/07

Pipeline components: checking to see if you're interested in processing a message

If you ever needed to see whether your component has to process a given message, try implementing the IProbeMessage interface. It gives you the message, you can analyze it and return a boolean value to indicate whether you're interested in processing the message. If you return false, the next component in the current stage will be executed in the normal manner. If you return true, your component will be executed by the messaging engine.

Example:

public bool Probe(IPipelineContext pc, IBaseMessage inMsg)
{
  // TODO: implement decision logic for the
  // message here
  return true;
}

Please note that the stage you will use the component in must be configured as FirstMatch, which in this version is only the Disassemble stage (see the documentation, the BizTalk 2004 documentation mus be installed for this to work and you have to copy the link and paste it in another window because of security constraints)

Update (2004/08/08): this interface has now been incorporated in my pipeline component wizard (just choose DisassemblingSerializer for the component stage), the pipeline component wizard can be retrieved here or here

3 Comments:

  • Have you got an RSS feed? This is a high quality blog, keep it up =)

    By Anonymous Anonymous, at 12:55 AM  

  • Hi, hopefully your reader also supports atom feeds, as that's all I have for now. My Atom feed can be found here: http://martijnh.blogspot.com/atom.xml

    By Blogger Martijn Hoogendoorn, at 8:15 AM  

  • And thanks for the compliment! I'll do my best..

    By Blogger Martijn Hoogendoorn, at 8:16 AM  

Post a Comment

<< Home