It's all about the answers!

Ask a question

Catching save work item by operation participant


Moti Wertheimer (18913627) | asked Jul 19 '09, 6:20 a.m.
JAZZ DEVELOPER
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



permanent link
Jared Burns (4.5k29) | 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
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

permanent link
Moti Wertheimer (18913627) | answered Jul 21 '09, 5:56 a.m.
JAZZ DEVELOPER

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

Your answer


Register or to post your answer.