how to add follow-up actions for an event
I want to add some follow-up actions to the event which is under the Event Handling section on the Process Configuration editor. To do this, I add the extension point com.ibm.team.process.service.eventHandlers to try to define an event handler to bind a particular event. Also I tried to define a new Event leveraging by the extension point com.ibm.team.process.service.configurationPoints. Code is below:
The event handler code:
From above steps, I can find the new event on the editor for configuring the Process Template, but for that event I can't find any new available follow-up action. Also I tried to give the different id for the event and the event category, but it doesn't work as well. Did I get any wrong understanding for this or miss something? Many thanks for your help. Feng |
3 answers
Jared Burns (4.5k●2●9)
| answered Oct 17 '08, 1:16 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The first two things I would check are:
1. Is the plugin that provides the event handler getting loaded on the server (if you're using Jetty, is the bundle included in your launch config)? 2. Does the "eventCategory" value you specified in your eventHandler extension match the "id" value of your event extension? Jared Burns Jazz Process Team liufcrl wrote: I want to add some follow-up actions to the event which is under the |
Jared, thanks for your response.
1. I'm using the JazzServer-06-RTC10-Maximal.launch to start a runtime server and loaded the plug-in which provides the event handler I wrote. I can make sure this because I can find my defined preconditions on the server which are defined in this plug-in also. 2. The event category ID is equal with the ID defined in event. And also the event ID is equal with the event category ID in the event extension. You can find them on the code above. I would like repeat it again here:
The first two things I would check are: I want to add some follow-up actions to the event which is under the |
I've solved this problem.
It's just because I got a wrong understanding on eventHandler extension point. I SHOULD NOT assign the "event category ID" to the eventCategory field under the eventHandler extension point, but I SHOULD assign the "event ID" to that field. After that I can find new available follow-up action under the event which my handler binds to. I just set the "event category ID" to the "eventCategory" field before so I failed to bind my handler to the event. Anyway, thanks for your help. :) |
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.