MetaData Element (Workflow)

Applies to: SharePoint Foundation 2010

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

SharePoint Foundation 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 Definitions

Other Resources

Workflows in SharePoint Foundation