다음을 통해 공유


ContentType Element (WorkflowConfig)

Applies to: SharePoint Foundation 2010

Defines a content type for a workflow task type used in the workflow.

<ContentType>
</ContentType>

Attributes

Attribute

Description

ContentTypeId

Required Text. Specifies the content type ID of the content type.

Form

Required Text. Specifies the path to the content type edit form.

The path specified must be relative to the location of the workflow configuration file.

Child Elements

Fields Element (WorkflowConfig)

Parent Elements

ContentTypes Element (WorkflowConfig)

Remarks

Each content type defined in the workflow configuration file must be added to the task list specified for the workflow.

Use the TaskListId attribute of the Association Element (WorkflowConfig) element to specify the task list the workflow should use.

For more information about content type IDs, see Content Type IDs.

The ContentType element allows any additional attributes.

Example

The following example shows a ContentTypes element that contains a single content type for the tasks created in the workflow.

  <ContentTypes>
    <ContentType 
      Name="Review New Document" 
      ContentTypeID=
        "0x0108010086C115D5C5C27B439C22EB22F050B49B00DD9F97273595EA4BA32838A26054BF08" 
      Form="/Workflows/Notify Me/Review New Document.aspx" 
      Description="Workflow used to review new documents">
      <Fields/>
    </ContentType>
  </ContentTypes>

See Also

Concepts

Workflow Development for SharePoint Foundation

Creating Declarative, No-Code Workflow Editors

Workflow Configuration Schema Overview

SharePoint Designer Workflow Overview