Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 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>

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: May 03 '17, 8:07 p.m.

Question was seen: 1,400 times

Last updated: May 03 '17, 8:09 p.m.

Confirmation Cancel Confirm