creation of a follow up action for an event handler
Hello,
I have created follow-up actions for operations on the server successfully
in the past. I am now trying to create a follow-up action for a given event,
but I have not succeeded so far.
I wanted to experiment with the "work item state changed event", in the
event handling section of the team configuration.
I have created a plugin, and in plugin.xml, I have added this:
<extension>
<eventHandler>
<extensionService>
<prerequisites>
<requiredService>
<requiredService>
</prerequisites>
</extensionService>
</eventHandler>
</extension>
I know that my plugin works, as it also contributes a class to
com.ibm.team.workitem.service.workItemPostSaveParticipants , and I see the
trace when I save a work-item in the tomcat window.
but when I go to the event handler page, I don't see any follow-up action
available. And I don't see any of my trace in my changeEventHandler, even
after a few minutes.
What did I do wrong ?
Thanks,
Nicolas
I have created follow-up actions for operations on the server successfully
in the past. I am now trying to create a follow-up action for a given event,
but I have not succeeded so far.
I wanted to experiment with the "work item state changed event", in the
event handling section of the team configuration.
I have created a plugin, and in plugin.xml, I have added this:
<extension>
<eventHandler>
<extensionService>
<prerequisites>
<requiredService>
<requiredService>
</prerequisites>
</extensionService>
</eventHandler>
</extension>
I know that my plugin works, as it also contributes a class to
com.ibm.team.workitem.service.workItemPostSaveParticipants , and I see the
trace when I save a work-item in the tomcat window.
but when I go to the event handler page, I don't see any follow-up action
available. And I don't see any of my trace in my changeEventHandler, even
after a few minutes.
What did I do wrong ?
Thanks,
Nicolas
4 answers
Hi,
are you shure you are using the correct extension point? For event-handler you don't have to use operationParticipants but com.ibm.team.process.service.eventHandlers.
Into this extension, in order to use state changed event you have to set com.ibm.team.workitem.event.stateChanged as event category.
An example of plugin structure could be the following:
<extension>
<eventHandler>
<description>
Description
</description>
<extensionService>
.....
</extensionService>
</eventHandler>
</extension>
Regards,
Michele.
are you shure you are using the correct extension point? For event-handler you don't have to use operationParticipants but com.ibm.team.process.service.eventHandlers.
Into this extension, in order to use state changed event you have to set com.ibm.team.workitem.event.stateChanged as event category.
An example of plugin structure could be the following:
<extension>
<eventHandler>
<description>
Description
</description>
<extensionService>
.....
</extensionService>
</eventHandler>
</extension>
Regards,
Michele.
Michele,
except for the category -that I have just added-, I think that's what I
have:
<extension>
<eventHandler>
<extensionService>
<prerequisites>
<requiredService>
<requiredService>
</prerequisites>
</extensionService>
</eventHandler>
</extension>
And I still don't see any follow-up action in the event handling section of
the Team Configuration, or any of my trace in the tomcat console.
1/ Should I provide a schema with my plugin ?
2/ is my event handler supposed to show up in the event handling section ?
3/ if yes, does it show-up in the event handling section because a handler
is contributed for a given event category ? I have trouble to see how the
connection is made with individual events for a category.
Many thanks !
Nicolas
"mikyjpeg" <michele> wrote in message
news:he32po$1uo$1@localhost.localdomain...
except for the category -that I have just added-, I think that's what I
have:
<extension>
<eventHandler>
<extensionService>
<prerequisites>
<requiredService>
<requiredService>
</prerequisites>
</extensionService>
</eventHandler>
</extension>
And I still don't see any follow-up action in the event handling section of
the Team Configuration, or any of my trace in the tomcat console.
1/ Should I provide a schema with my plugin ?
2/ is my event handler supposed to show up in the event handling section ?
3/ if yes, does it show-up in the event handling section because a handler
is contributed for a given event category ? I have trouble to see how the
connection is made with individual events for a category.
Many thanks !
Nicolas
"mikyjpeg" <michele> wrote in message
news:he32po$1uo$1@localhost.localdomain...
Hi,
are you shure you are using the correct extension point? For
event-handler you don't have to use operationParticipants but
com.ibm.team.process.service.eventHandlers.
Into this extension, in order to use state changed event you have to
set com.ibm.team.workitem.event.stateChanged as event category.
An example of plugin structure could be the following:
extension
eventHandler
description
Description
/description
extensionService
.....
/extensionService
/eventHandler
/extension
Regards,
Michele.
On 24-Nov-09 2:55 PM, Nicolas Dangeville wrote:
Nicolas, which was your problem? I have an Event handler that appears in
the Process Editor but it is not executed. Perhaps your solution can
help me.
Thanks,
Chemi.
Nevermind, I have created a new plugin and now I see a follow-up action for
the event in the process editor, and my event handler is called !
Many thanks !
Nicolas
Nicolas, which was your problem? I have an Event handler that appears in
the Process Editor but it is not executed. Perhaps your solution can
help me.
Thanks,
Chemi.