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
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
Accepted answer
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.
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.