Catching save work item by operation participant

I want to perform some operation after saving work item.
I have created new plug-in for operation participant ("SetConfirmerFollowup"):
<plugin>
<extension
point="com.ibm.team.process.client.operationParticipants">
<operationParticipant
class="com.example.followupactions.SetConfirmerFollowup"
id="com.example.runsetconfirmer"
name="Set Confirmer Followup test"
operationId="com.ibm.team.workitem.operation.workItemSave">
</operationParticipant>
</extension>
</plugin>
and added code:
public class SetConfirmerFollowup implements IOperationParticipant{
public void run(AdvisableOperation operation, IProcessConfigurationElement processConfigurationElement,
IParticipantInfoCollector participantCollector, IProgressMonitor monitor) {
String thename = processConfigurationElement.getName();
JOptionPane
.showMessageDialog(null, thename);
}
}
Now, running RTC (using eclipse, or by copying the plugin fragment to plugins location on RTC) shows me this operation as available follow-up in the project configuration's save item operation.
The project configuration now shows:
<operation id="com.ibm.team.workitem.operation.workItemSave"
<followup>
<followup-action id="com.example.runsetconfirmer" name="Set Confirmer Followup test"/>
</followup>
But, it's not working.
Saving workitem won't activate this operation participant.
Maybe I should set it on server? Or missing something?
Thanks,
Moti
I have created new plug-in for operation participant ("SetConfirmerFollowup"):
<plugin>
<extension
point="com.ibm.team.process.client.operationParticipants">
<operationParticipant
class="com.example.followupactions.SetConfirmerFollowup"
id="com.example.runsetconfirmer"
name="Set Confirmer Followup test"
operationId="com.ibm.team.workitem.operation.workItemSave">
</operationParticipant>
</extension>
</plugin>
and added code:
public class SetConfirmerFollowup implements IOperationParticipant{
public void run(AdvisableOperation operation, IProcessConfigurationElement processConfigurationElement,
IParticipantInfoCollector participantCollector, IProgressMonitor monitor) {
String thename = processConfigurationElement.getName();
JOptionPane
.showMessageDialog(null, thename);
}
}
Now, running RTC (using eclipse, or by copying the plugin fragment to plugins location on RTC) shows me this operation as available follow-up in the project configuration's save item operation.
The project configuration now shows:
<operation id="com.ibm.team.workitem.operation.workItemSave"
<followup>
<followup-action id="com.example.runsetconfirmer" name="Set Confirmer Followup test"/>
</followup>
But, it's not working.
Saving workitem won't activate this operation participant.
Maybe I should set it on server? Or missing something?
Thanks,
Moti
2 answers

On Sun, 19 Jul 2009 10:23:03 +0000, motiwert wrote:
The Work Item Save operation is run on the server, so any participants
need to be server-side as well.
--
Jared Burns
Jazz Process Team
Saving workitem won't activate this operation participant. Maybe I
should set it on server? Or missing something?
The Work Item Save operation is run on the server, so any participants
need to be server-side as well.
--
Jared Burns
Jazz Process Team