工作流的 <system.serviceModel>

此配置节包含所有工作流配置元素。

configuration
   <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"
          hostLockRenewalPeriod="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> 表示一个配置节,用于定义工作流服务的跟踪设置。

有关工作流跟踪及其配置的详细信息,请参阅工作流跟踪为工作流配置跟踪

父元素

元素 说明
<configuration> .NET 配置文件中的所有配置元素的根元素。