What is the eventCategory for Project Area change event? And how to set an IProcessDefinitionCreatorParticipant?
Hi guys,
<extensionpoint="com.ibm.team.process.service.processDefinitionCreatorParticipants"><processDefinitionCreatorParticipant><extensionServicecomponentId="com.pitang.rtc.experiments.service.ProjectAreaCreationServiceId"implementationClass="com.pitang.rtc.experiments.service.ProjectAreaCreationService"><prerequisites><requiredService interface="com.ibm.team.repository.service.IRepositoryItemService"/></prerequisites></extensionService></processDefinitionCreatorParticipant></extension>
I wrote a very simple code to test it
public class ProjectAreaCreationService extends ProcessAuthoringAbstractService implements IProjectAreaInitializer, IProcessDefinitionCreatorParticipant {
public void run(IProjectAreaHandle projectAreaHandle) throws TeamRepositoryException {
IProjectArea projectArea = (IProjectArea) getService(
IRepositoryItemService.class).fetchItem(projectAreaHandle,
null);
System.out.println("ProjectArea Created: "+projectArea.getName());
System.out.println("Process Used: "+projectArea.getProcessName());
}
}
But no success
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Courier New'; color: #011993} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Courier New'; color: #008f00} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Courier New'} span.s1 {color: #000000} span.s2 {color: #011993} span.Apple-tab-span {white-space:pre} </style>