Dependencies

A task can depend on other tasks, requiring other tasks to complete before primary task can run. For example, the task to create work item instances cannot run until all the tasks to create work item types have run. Therefore the work item instances task depends on the work item type tasks.

Use the dependency element in tasks and groups to indicate when a dependency exists. The following example shows how to use the dependency element to specify that the WorkItemTracking task group depends on the Classification and Groups task groups.

<group id="WorkItemTracking"
   description="Workitem definitions uploading."
   completionMessage="Workitem definitions uploaded.">
   <dependencies>
      <dependency groupId="Classification"/>
      <dependency groupId="Groups"/>
   </dependencies>
   <taskList filename="WorkItem Tracking\WorkItems.xml"/>
</group>

Note

The groupId element references the id element value in the other group.

The following example shows how to use the dependency element to specify that the WorkItems task depends on the task with an ID of "WITs."

<task
   id="WIs"
   name="WorkItems"
   plugin="Microsoft.ProjectCreationWizard.WorkItemTracking"
   completionMessage="Work items uploaded"
   completionDescription = "Processing the actual work items used by work item tracking">
   <dependencies>
      <dependency taskId="WITs" />
   </dependencies>

Tip

List your tasks in each XML process definition file in the same order as their dependencies. This order makes eliminating dependency problems and readability easier.

Dependencies can be used to indicate the order in which plug-ins run in the New Team Project Wizard. Some plug-ins are always dependent on other plug-ins. Also, not all plug-ins are required for a process template. The following table identifies which plug-ins depend on other plug-ins, and whether they are required to be in a process template.

Process Template Plug-in

Dependent Plug-ins

Required?

Classification

None

Yes

Groups and Permissions

Classification Plug-in.

No

Work Item Tracking

Classification and Groups and Permissions Plug-ins.

No

Windows SharePoint Services

Classifications, Work Item Tracking, and Version Control Plug-ins.

No

Reports

Classification and Windows SharePoint Services Plug-ins.

No

Version Control

Classification and Work Item Tracking Plug-ins.

No

See Also

Concepts

Classification Process Template Plug-in

Windows SharePoint Services Process Template Plug-in

Reports Process Template Plug-in

Groups and Permissions Process Template Plug-in

Other Resources

Work Item Tracking Process Template Plug-in

Working with Version Control in Work Items