Click to Rate and Give Feedback
MSDN
MSDN Library
BizTalk Server
BizTalk Server 2004
SDK
Programming Guide
 Pipeline Stages
Microsoft BizTalk Server 2004
Pipeline Stages

This topic discusses the Execution Mode property and stage affinity.

Execution Mode property

During the execution of a pipeline, the pipeline stages can run only the first component that recognizes the message format, or all components. The property that determines the execution pattern is Execution Mode. This property is read-only on the stages included in the pipeline templates, but understanding how it works is an important concept.

When the Execution Mode property is set to All, all the components within the stage are run in the configured sequence. Use this mode when several components must be run to complete a logical task. In this case, a run-time error results if any component encounters an error while processing a message during this pipeline stage.

When a pipeline is used to receive messages in several formats, then you can set its Execution Mode property to FirstMatch. In this mode, only the first component that recognizes the message is run. If no components in the stage recognize the message, a run-time error results.

Note that each stage can have its own Execution Mode setting, so different stages within a pipeline can have different execution modes.

Note  In this release of BizTalk Server 2004, all the stages in a send pipeline and all stages except Disassemble in a receive pipeline have the value of the Execution Mode property set to All. The value of the Execution Mode property in the Disassemble stage is set to FirstMatch. You cannot change the Execution Mode property of a stage.

To read pipeline stage properties

  1. In Pipeline Designer, click a stage shape.
  2. In the Properties window, in the General section, read the following properties:
    Use thisTo do this
    NameIndicates the name of the stage.
    Execution ModeIndicates the execution pattern of the stage.

    Valid values: All or FirstMatch

    Minimum Number of ComponentsIndicates the minimum number of pipeline components that can be added to the stage.
    Maximum Number of ComponentsIndicates the maximum number of pipeline components that can be added to the stage.
    StageIDIndicates the unique identifier for the stage.

Stage affinity

Pipeline components have stage affinity, meaning that they are created for use within a particular stage or stages in a pipeline.

COM-based pipeline components express their stage affinity by registering themselves using the stage ID as the implementation category, while .NET-based pipeline components specify their stage affinity by using the ComponentCategory class attribute. Note that it is possible for a component to associate itself with more than one stage—components can have more than one implementation category or ComponentCategory attribute.

The following table shows the available component categories and their associated stages.

Component categoryStage where component can be placedDescription
CATID_Decoder {9d0e4103-4cce-4536-83fa-4a5040674ad6}DecodeAll decoding components should implement this category.
CATID_DisassemblingParser {9d0e4105-4cce-4536-83fa-4a5040674ad6}DisassembleAll disassembling and parsing components should implement this category.
CATID_Validate {9d0e410d-4cce-4536-83fa-4a5040674ad6}ValidateValidation components should implement this category.
CATID_PartyResolver {9d0e410e-4cce-4536-83fa-4a5040674ad6}ResolvePartyStage used for Party Resolution component.
CATID_Encoder {9d0e4108-4cce-4536-83fa-4a5040674ad6}EncodeAll encoding components should implement this category.
CATID_AssemblingSerializer {9d0e4107-4cce-4536-83fa-4a5040674ad6}SerializeAll serializing and assembling components should implement this category.
CATID_Any {9d0e4101-4cce-4536-83fa-4a5040674ad6}Any of these stagesIf a pipeline component implements this category, it means that the component can be placed into any stage of a pipeline.

See Also

Developing Pipelines

About Pipelines, Stages, and Components

To download updated BizTalk Server 2004 Help from www.microsoft.com, go to http://go.microsoft.com/fwlink/?linkid=20616.

Copyright © 2004 Microsoft Corporation.
All rights reserved.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker