Share via


InitiationType 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.

Specifies which events are enabled, at workflow association, to initiate the workflow.

<InitiationType>
</InitiationType>

Attributes

Attribute

Description

None

Child Elements

None.

Parent Elements

MetaData Element (Workflow)

Occurrences

Minimum: 0

Maximum: 1

Remarks

The InitiationType element takes any of the following values:

  • Manual   Users can manually initiate the workflow.

  • OnNewItem   The workflow is initiated automatically when a user creates a new item.

  • OnItemUpdate   The workflow is initiated automatically when a user updates an item, including updating item metadata.

  • **OnMajorCheckin   **The workflow initiates when the user attempts to approve publishing a major version of an item.

Specify the initiation types as a character-delimited string, using ";#" as the delimiting characters.

If you do not specify an InitiationType element, Windows SharePoint Services treats the workflow as if the Manual, OnNewItem, and OnItemUpdate values have been specified.

Example

The following example specifies that the workflow can be initiated manually, and is initiated automatically when a user creates an item, updates an item, or checks in a major version of an item.

<InitiationType>Manual;#OnNewItem;#OnItemUpdate;#OnMajorCheckIn</InitiationType>

See Also

Concepts

Workflow Deployment Using Features

Workflow Definition Schema

Other Resources

Workflows in Windows SharePoint Services