It's all about the answers!

Ask a question

creation of a follow up action for an event handler


Nicolas Dangeville (31632525) | asked Nov 17 '09, 5:08 p.m.
JAZZ DEVELOPER
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

4 answers



permanent link
Michele Pegoraro (1.8k14119103) | answered Nov 19 '09, 4:10 a.m.
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.

permanent link
Nicolas Dangeville (31632525) | answered Nov 19 '09, 10:08 a.m.
JAZZ DEVELOPER
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...
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.

permanent link
Nicolas Dangeville (31632525) | answered Nov 24 '09, 9:08 a.m.
JAZZ DEVELOPER
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

permanent link
Jose Miguel Ordax Cassa (2.4k4126100) | answered Nov 24 '09, 9:38 a.m.
On 24-Nov-09 2:55 PM, Nicolas Dangeville wrote:
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.

Your answer


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.