工作流程的 <system.serviceModel>

這個組態區段包含所有工作流程組態項目。

語法

<system.ServiceModel>
  <behaviors>
    <serviceBehaviors>
    <behavior name="String">
      <bufferReceive maxPendingMessagesPerChannel=”Integer” />
      <etwTracking profileName="String" />
     <sendMessageChannelCache allowUnsafeCaching="Boolean" >        
        <channelSettings idleTimeout="TimeSpan" leaseTimeout="TimeSpan" maxItemsInCache="Integer" />
        <factorySettings idleTimeout="TimeSpan" leaseTimeout="TimeSpan" maxItemsInCache="Integer" />
     </sendMessageChannelCache>
      <sqlWorkflowInstanceStore 
          connectionStringName="String" 
          honstLockRenewalPeriod="TimeSpan"
          instanceCompletionAction="DeleteNothing/DeleteAll"
          instanceEncodingAction="None/GZip"
          instanceLockedExceptionAction="NoRetry/BasicRetry/AggressiveRetry"
          runnableInstancesDetectionPeriod="TimeSpan" />
      <workflowIdle timeToPersist="TimeSpan"
          timeToUnload="TimeSpan" />
      <workflowUnhandledExceptionaction="Abandon/AbandonAndSuspend/Cancel/Terminate" />
    </behavior>
    </serviceBehaviors>
  </behaviors>
  <tracking>  
     <participants> 
      <add name="String" 
           profileName="String"
           type="String" /> 
     </participants> 
    <trackingProfile name="String">
      <workflow activityDefinitionId="String">
          <activityScheduledQueries>
             <activityScheduledQuery activityName="String"
                 childActivityName="String"/>
          </activityScheduledQueries>
             <activityStateQuery activityName="String" />
                <arguments>
                   <argument name="String"/>
                </arguments>
                <states>
                   <state name="String"/>
                </states>
                <variables>
                   <variable name="String"/>
                </variables>
          </activityStateQueries>
          <bookmarkResumptionQueries>
             <bookmarkResumptionQuery name="String" />
          </bookmarkResumptionQueries>
          <cancelRequestQueries>
             <cancelRequestQuery activityName="String"
                 childActivityName="String"/>
          </cancelRequestQueries>
          <customTrackingQueries>
             <customTrackingQuery activityName="String"
                 name="String"/>
          </customTrackingQueries>
          <faultPropagationQueries>
             <faultPropagationQuery activityName="String"
                 faultHandlerActivityName="String"/>
          </faultPropagationQueries>
         <workflowInstanceQueries>
            <workflowInstanceQuery>
              <states>
                 <state name="String"/>
              </states>
          </workflowInstanceQuery>
        </workflowInstanceQueries>
      </workflow>
    </trackingProfile>        
   </profiles>
  </tracking>
</system.ServiceModel>

屬性和元素

下列各節說明屬性、子項目和父項目。

屬性

項目子系

項目 描述

工作流程的 <behaviors>

這個區段會定義 serviceBehaviors 集合。集合中的每個項目都會定義服務使用的行為項目。每個行為項目都由其唯一的 name 屬性所識別。

<tracking>

代表定義工作流程服務之追蹤設定的組態區段。

如需工作流程追蹤及其組態的詳細資訊,請參閱Workflow Tracking and TracingConfiguring Tracking for a Workflow

父項目

項目 描述

<configuration>

.NET 組態檔中所有組態項目的根項目。

建置日期:2010-02-13