
Based on my previous post I got some questions regarding the events that Team System provides.
The main question is where did you obtain the list of events?
The list of events that Team System provides can be found by a combination of steps.
At first you can go to the following folder on your Team Foundation Server
C:Program FilesMicrosoft Visual Studio 2005 Team Foundation ServerWeb ServicesServicesv1.0Transforms
This folder contains a set of event type definitions. Every Event that can be processed using the Team System eventing infrastructure needs to be defined in the system. The schemas that you find define the data that gets posted with the event. This is what I used to define the filter syntax in the previous post.
When you browse the folder you will find the following list of events (BETA3, not the refresh yet, did not have the time yet to upgrade)
AclChangedEvent.xsd
ArtifactChangedEvent.xsd
branchmovedevent.xsd
BuildCompletionEvent.xsd
BuildStatusChangeEvent.xsd
CommonStructureChangedEvent.xsd
DataChangedEvent.xsd
IdentityChangedEvent.xsd
IdentityCreatedEvent.xsd
IdentityDeletedEvent.xsd
MembershipChangedEvent.xsd
nodecreatedevent.xsd
nodepropertieschangedevent.xsd
noderenamedevent.xsd
nodesdeletedevent.xsd
projectcreatedevent.xsd
projectdeletedevent.xsd
projectrenamedevent.xsd
WorkItemChangedEvent.xsd
The interesting thing to see here is that one important event is missing. This is the CheckinEvent.
To get information on this event, you need to take a look into the tfsIntegration database. Here you find a table called tbl_eventType. Here you can find the event and the schema for the event can be found in the column event_ type_schema. This is the missing Xsd that defines all the fields I mentioned in my previous post.
I hope this demystifies how I got the information I used for my subscription tool.
3 comments
This is really informative. Can you please tell that Can we customize all such events? i.e. Can I add my New Events to list of these events? How can I customize alerts on some perticular customize events?
I really need to know this.
Chital Panchal
s/w Eng.
Chital
How can i invoke a out of box service after some event occure in TFS, like i want to invoke one window service that will deal with some other functianilty in my project after successfully completion of my build. how can achieve this fuctionality ? how can i modify BuildStatusChangeEvent.
Abhishek Joshi
Well very simple. Make a Webservice that can recieve the TFS event and from that you just invoke the service you want. I don’t know what you mean by “Changing” the BuildStatusChangeEvent. You can’t change existing events, you can react on them by taking a subscription (Via OM or BisSubscribe.exe). From that point on, you can do what you want with the event.(Except canceling it)
marcelv