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 |
2 answers
Jared Burns (4.5k●2●9)
| answered Jul 20 '09, 10:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Sun, 19 Jul 2009 10:23:03 +0000, motiwert wrote:
Saving workitem won't activate this operation participant. Maybe I 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 |
Thanks for the reply Jared, Unfortunately, my server is not accessible for add-ons. Can you suggest me other option which is client-only to automate some task after saving work item? Thanks, Moti |
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.