Share via


MetaData Element (Workflow)

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 any additional, custom metadata elements that are valid XML for the workflow.

<MetaData>
</Metadata>

Attributes

Attribute

Description

None

Child Elements

None.

Parent Elements

Workflow Element (Elements)

Occurrences

Minimum: 0

Maximum: 1

Remarks

Windows SharePoint Services uses the following elements to define additional workflow information in the MetaData element:

  • InitiationType

  • Modification_GUID_Name

  • StatusPageUrl

  • ExtendedStatusColumnValues

Example

Following is an example of a Metadata element containing information on how the workflow can be initiated, the name of a workflow modification contained in the workflow, and custom status column values.

  <MetaData>
    <InitiationType>Manual;#OnNewItem;#OnItemUpdate;#OnMajorCheckIn</InitiationType>
    <Modification_af71f77b-e6c8-483a-acbf-30b4a84bd209_Name>myWorkflowModification</Modification_af71f77b-e6c8-483a-acbf-30b4a84bd209_Name>
    <Modification_Format><my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:my="http://schemas.adventureworks.com/workflows/myXSD">{0}</my:myFields></Modification_Format>
    <StatusPageUrl>_layouts/myWrkStat.aspx</StatusPageUrl>
    <ExtendedStatusColumnValues>
      <StatusColumnValue>Canceled</StatusColumnValue>
      <StatusColumnValue>Approved</StatusColumnValue>
      <StatusColumnValue>Rejected</StatusColumnValue>
    </ExtendedStatusColumnValues>  
  </MetaData>

See Also

Concepts

Workflow Deployment Using Features

Workflow Definition Schema

Other Resources

Workflows in Windows SharePoint Services