It's all about the answers!

Ask a question

What is the eventCategory for Project Area change event? And how to set an IProcessDefinitionCreatorParticipant?


Eduardo Bello (4401922) | asked May 03 '17, 8:07 p.m.
edited May 03 '17, 8:09 p.m.

 Hi guys,


   I'm trying to implement an event handler for Project Area changes, do you know what is the eventCategory that I should use?

   And also, I'm trying to to run some code when a Project Area is created. I found an implementation of an IProcessDefinitionCreatorParticipant (ProcessAuthoringCopyProcessDescriptionService). I've added the extension point in my plugin.xml but it's not been called (at least from Jetty configuration)
 <extension
       point="com.ibm.team.process.service.processDefinitionCreatorParticipants">
    <processDefinitionCreatorParticipant>
       <extensionService
             componentId="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>

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.