Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
On Sun, 19 Jul 2009 10:23:03 +0000, motiwert wrote:
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

0 votes


Permanent link

The Work Item Save operation is run on the server, so any participants
need to be server-side as well.


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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,985

Question asked: Jul 19 '09, 6:20 a.m.

Question was seen: 7,307 times

Last updated: Jul 19 '09, 6:20 a.m.

Confirmation Cancel Confirm