Share via


ContentTypes Element (WorkflowConfig)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Contains the content type definitions for any workflow task types used in the workflow.

<ContentTypes>
</ContentTypes>

Attributes

None

Child Elements

ContentType Element (WorkflowConfig)

Parent Elements

WorkflowConfig Element

Remarks

The workflow task content types defined for workflows should ultimately inherit from the WorkflowTask content type.

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

For more information about the base content types included with Windows SharePoint Services, see Base Content Type Hierarchy.

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

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 Windows SharePoint Services

Creating Declarative, No-Code Workflow Editors

Workflow Configuration Schema Overview

Office SharePoint Designer 2007 Overview