WorkItem State change eventhandler
Hi,
I'm trying to write an eventhandler forcom.ibm.team.workitem.event.stateChanged .
My plugin.xml:
I've read that I need toactivate the eventListener in the process configuration editor. But Event Handling (unconfigured) is grayed out.
How can I activate this option?
Best Regards
Erik V.
I'm trying to write an eventhandler for
My plugin.xml:
...
class="com.prostep.openpdm.linkage.demo.StateChangeEventHandler"
eventCategory="com.ibm.team.workitem.event.stateChanged"
id="com.prostep.openpdm.linkage.Demo.StateChangedEventHandler"
...
I've read that I need to
How can I activate this option?
Best Regards
Erik V.
8 answers
I managed to register my eventhandler in the process by editing the process XML
Know when I try to save a WorkItem I get the following error in Team Advisor:
In the OSGI console I can see/start/stop my bundle.
<behaviour>
...
<role id="default">
<operation id="com.ibm.team.workitem.operation.workItemSave">
<followup-actions>
<followup-action description="OpenPDM Trigger" id="com.prostep.openpdm.linkage.demo.StateChangedEventHandler" name="OpenPDM Change Event" optional="false"/>
</followup-actions>
</operation>
</role>
...
</behaviour>
Know when I try to save a WorkItem I get the following error in Team Advisor:
Problem
Unable to find extension matching followup-action id: com.prostep.openpdm.linkage.demo.StateChangedEventHandler. This typically means that a plugin is missing. In order for this operation to run without this followup-action, the team must configure it as "optional".
In the OSGI console I can see/start/stop my bundle.
I changed the process XML to the following:
Now I can save the Work Item without an error message but my EventHandler is not called.
...
<behaviour>
<role id="default">
<operation id="com.ibm.team.workitem.operation.workItemSave"/>
</role>
<change-event id="com.ibm.team.workitem.event.stateChanged">
<followup-actions>
<followup-action description="OpenPDM Trigger" id="com.prostep.openpdm.linkage.demo.StateChangedEventHandler" name="OpenPDM Trigger" optional="false"/>
</followup-actions>
</change-event>
</behavior>
...
Now I can save the Work Item without an error message but my EventHandler is not called.
I reinstalled the Jazz Server and now it is working. I can now select my EventHandler as follow-up action in the Event Handling section.
But thehandleEvent method doesn't get called on a state change.
Incom.ibm.team.process.internal.service.ServerProcess.handleChangeEvent(IChangeEvent, IProcessArea) the only event that occurs on save is com.ibm.team.feeds.workItemChange .
But the
In
On Wed, 22 Sep 2010 21:37:57 +0000, sdetweil wrote:
All event handlers are defined server-side.
- Jared
------------------------
Jazz Team Process
I'm lost.. (I think)
I see the greyed out event thru eclipse on the Simple team process
definition.
but I want a server side (client independant) event handler.
I think you defined an eclipse based handler, right?
Sam
All event handlers are defined server-side.
- Jared
------------------------
Jazz Team Process
On Wed, 22 Sep 2010 21:37:57 +0000, sdetweil wrote:
I'm lost.. (I think)
I see the greyed out event thru eclipse on the Simple team process
definition.
but I want a server side (client independant) event handler.
I think you defined an eclipse based handler, right?
Sam
All event handlers are defined server-side.
- Jared
------------------------
Jazz Team Process
hm.. I've installed the SDK (just downloaded today), and I see plain java client and eclipse plugins.. I don't see anything server focused.
and none of the classes referenced above.
and no source code samples for any handlers or other objects, nor any javadoc or other reference material loaded as part of the sdk.
Sam