Welcome to MSDN Blogs Sign in | Join | Help

Customizing Process Templates

As promised, I (Amy Hagstrom, VSTF Program Manager) am back this week to discuss customizing process templates.

What are process templates?

As mentioned last week, process templates are a type of blueprint for the Team Project Creation Wizard.  They provide a set of team project customizations that support the processes a team should follow.  VSTS will ship two process templates: MSF for Agile Software Development and MSF for CMMI Improvement.  Out of the box, process templates will include these elements:

·        Work Items

o       Type definitions (such as Defect, Task, and Issue) – stay tuned for a post in the next couple weeks that covers modifying Work Item type definitions in more detail

o       Queries

o       Instances – these make up a Project Roadmap (a predetermined set of tasks that must be done for every project, such as gathering requirements or writing a vision document)   

o       Mapping of Work Item fields to MS Project columns

·        SharePoint Site layout, theme, and content

o       Document Templates

o       Process Guidance

·        Version Control Settings

o       Check-in notes

o       Permissions

o       Multiple check-out

·        Reports (SQL Reporting Services)

·        Groups and Permissions

·        Iterations

Beyond this, 3rd parties can write plug-ins for the Project Creation Wizard that could consume their own custom process templates elements. 

How are process templates customized?

  1. It is best to start with an existing process template.  To do this first launch the Process Template Manager in Visual Studio by going to the Team menu > Team Foundation Server Settings > Process Template Manager.
         
  1. Select the process template you want to base your custom process template on, and choose “Export.”  This will download the process template to a local directory you specify.  The process template is a cohesive set of folders and files.
        
  1. To change the name and description of the process template, edit ProcessTemplate.xml:

...

<methodology>

     <metadata>

      <name>Name of my Custom Process Template</name>

      <description>Use this process template for projects that require light processes… </description>

...

  1. Determine which modifications you want to make, and edit the appropriate xml files using your favorite xml editor.  In the below SCCTasks.xml I’m adding a new required check-in note called “Comments”, and making exclusive check-out required:

<?xml version="1.0" encoding="utf-8" ?>

<tasks>

    <task id="SccTask" name="Create Source Control area" plugin="Microsoft.Pcw.Scc" completionMessage="Source control area created.">

      <dependencies/>

      <taskXml>

<permission access="Read, PendChange, Checkin, Label, Lock, ReviseOther, UnlockOther, UndoOther, LabelOther, AdminProjectRights, CheckinOther" grant="allow" identity="$$PROJECTNAME$$\Project Administrators"/>

      <permission access="Read, PendChange, Checkin, Label, Lock" grant="allow" identity="$$PROJECTNAME$$\Contributor"/>

      <permission access="Read" grant="allow" identity="$$PROJECTNAME$$\Reader"/>

      <checkin_note label="Code Reviewer" required="true" order="499"/>

      <checkin_note label="Comments" required="true"/>

      <exclusive_checkout required="true"/>

      </taskXml>

      </task>

</tasks>

  1. If you are including new files (like a new document or report), add those files to the appropriate place in the folder structure. 
  2. To upload your customized process template, launch the Process Template Manager again and do so via the “Import” button.

 

Any comments or questions?

 

Amy Hagstrom

Program Manager

Visual Studio Team Foundation

Published Wednesday, March 16, 2005 2:05 PM by Team Foundation
Filed under:

Comments

# re: Customizing Process Templates

you asked for questions. I'd like to know where I can get a schema for these files so that I know what options I have for modifying the process templates.
Wednesday, March 16, 2005 10:54 PM by Matt Milner

# re: Customizing Process Templates

Can I customize my projects only *before* I start them? Let's say, I have an existing project with data, and I realize that the fields of the work items don't fit my needs. Am I stuck with them or is there a way to change them?
Thursday, March 17, 2005 8:43 AM by mARCEL zUMSTEIN

# re: Customizing Process Templates

It seems to me a great idea to look at the process as if it was something in continous evolution. In my company effectively it is. I can say that we' re refactoring the process day by day. So the question is what happen if ...

1) I apply the template01 to project01
2) I learn from project01 and I find a new idea for a new template let's call it Template02
3) I apply template02 to project02
4) six month later ... ops ... my boss ask me to work on project01 evolutions

do I have to use Template01 ?

best regards
Nicola
Thursday, March 17, 2005 9:48 AM by NicolaCanalini

# re: Customizing Process Templates

Hi Amy,

What does Multiple check-out refer to?
Thursday, March 17, 2005 10:20 AM by Zohar

# re: Customizing Process Templates

Great Post! I've been starting to investigate more on the Team Foundation side, and I noticed that the MSF Agile process creates a lot of work items and such for you. I tried exporting the MSF Agile process, but was not sure what I was looking at. This post gives me what I need to delve into it more deeply and start playing more. Thanks!
Saturday, March 19, 2005 10:19 PM by Mickey Gousset

# re: Customizing Process Templates

Question: If you open the XML file up using VS2005, we wouldn't be lucky enough to get Intellisense to help us with the editing, would we? Where do we look for more resources on how to edit a process model (such as all the possible elements and attributes, etc...)?
Saturday, March 19, 2005 10:30 PM by Mickey Gousset

# re: Customizing Process Templates

The xsd's are part of the Team Foundation Extensibility Kit; the December CTP version can be downloaded from: http://download.microsoft.com/download/5/4/6/5466ad0d-dd6d-4b2e-9402-63352bda1798/VSTF 1204 CTP Extensibility Kit.msi
Monday, March 21, 2005 6:08 PM by Amy Hagstrom

# re: Customizing Process Templates - customizing post project creation


Process templates are basically a getting started blueprint for the project; you can definitely customize a team project after project creation. See my 3/3 Project Customization Overview post for more information on what can be customized once a project is created. Ling will soon be posting specifically on how to modify work item types and fields once a project is created.
Monday, March 21, 2005 6:06 PM by Amy Hagstrom

# re: Customizing Process Templates - continuous evolution

Hi Nicola,

At least for VSTF v1, you won't be able to apply a new process template to an existing project (a desirable feature, no doubt). However you can go back to your Project1 and more manually do some or the customizations you made with Template02. For example, if you added a new field called "owner" to one of your WI types in Template02, you can go back to project1 and add that same field with a witimport.exe utility that Ling will soon be posting about. Or if you changed the process guidance in Template02, you can go edit the processguidance pages on project1 to match.

-Amy
Monday, March 21, 2005 6:23 PM by Amy Hagstrom

# re: Customizing Process Templates - multiple checkout

Hi Zohar,

In the VSTF version control system, this is a setting that specifies whether the same files can be checked out by multiple users at the same time (and changes later merged on check in) or if any given file can only be checked out exclusively by a single user.

-Amy
Monday, March 21, 2005 6:41 PM by Amy Hagstrom

# re: Customizing Process Templates - intellisense

Mickey,

I can't promise anything just yet, but we're looking into getting intellisense working (within VS) for the xml files.

-Amy
Wednesday, March 23, 2005 5:24 PM by Amy Hagstrom

# re: Customizing Process Templates

Mickey if you grab the XSD from the extensibility kit and drop it into:

C:\Program Files\Microsoft Visual Studio 8\Common7\Packages\schemas\xml

then just make sure your xml file declares a namespace (probably the default) to the targetNamespace specified in the XSD. After that, VS should provide intellisense support for editing the XML file.
Friday, March 25, 2005 1:32 PM by Keith Hill

# Another link roundup: Visual Studio Team System

I don't have any really pressing matters to post about, so I'll give another link roundup - my newsgator...
Wednesday, July 06, 2005 12:41 PM by Life, Universe and Everything according to Dirk

# Team Foundation Server FAQ

Frequently asked questions and answers regarding Visual Studio Team Foundation Server.
Friday, February 24, 2006 10:35 AM by Jim Lamb

# VSTS Customization Toolkit

Ol&#225; Pessoal,
A grande novidade, diferen&#231;a e inova&#231;&#227;o do VSTS &#233; a capacidade de organizar o processo...
Monday, May 01, 2006 2:23 PM by Hélio Sá Moreira

# Which version of VS is needed to modify the Team Foundation Server Process Templates

One of the local government branches had some questions on Team Foundation Server and I thought others

Monday, November 06, 2006 1:33 AM by Ozzie Rules Blogging

# Team Foundation s WebLog Customizing Process Templates | Paid Surveys

Anonymous comments are disabled
 
Page view tracker