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

How to listen to "Deliver" events on client side in RTC 4 & 5

Hello to the forum members,

I'd like to perform some action at client side when change-set is being delivered to a certain stream. I am looking for the right event to listen to. I found the event com.ibm.team.scm.client.events.IChangeHistoryEvent which contains the constant DELIVER. According to example code in the SDK, the following code should do the trick:

final IWorkspaceConnection wksCon;
//Some code to set wksCon with value.
wksCon.addGenericListener(IChangeHistoryEvent.DELIVER, new MyListener());
//Assuming MyListener implements com.ibm.team.repository.client.util.IListener

I tried this code, but it does not react to deliver events. If anyone has experience in this area I'll be grateful for your comments.

Thanks,
Gidi

0 votes


Accepted answer

Permanent link
Gidi,

If this is closely related to the deliver operation itself,you could use a participant, instead of listening to an event.

https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable#operations describes the existing extension points.There is one for the client as well as the server.
Gidi Gal selected this answer as the correct answer

1 vote


One other answer

Permanent link
Thanks for your help, Ralph. I succeeded writing the requested behavior for extension point com.ibm.team.process.client.operationParticipants and operationId  com.ibm.team.scm.client.deliver.

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,926
× 1,201
× 456

Question asked: Sep 10 '14, 1:27 p.m.

Question was seen: 5,176 times

Last updated: Sep 16 '14, 5:41 a.m.

Confirmation Cancel Confirm