It's all about the answers!

Ask a question

How to access snapshot and baseline name using server side api in RTC


Nilesh Patil (1732749) | asked Jul 20 '16, 7:21 a.m.
edited Jul 25 '16, 4:15 p.m. by David Lafreniere (4.5k7)
 Hi all,

I am writing custom precondition for RTC to validate the snapshot and baseline name . Basically I am trying to implement naming convention for snapshot and baseline.

I explored on the api to get snapshot name but did find anything. Could you please let me (sample code would be very much helpful) how to get the snapshot and baseline name in server side precondition

Thank you all in advance

2 answers



permanent link
Ralph Schoon (57.1k23642) | answered Jul 20 '16, 7:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Here and in the related posts is some example code for baselines. https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/ most of the code should be common and be available in client and server API.

A snapshot is a IBaselineSetHandle or IBaselineSet and you should be able to find some hints here: https://www.google.com/search?q=baselineset+site:jazz.net

Comments
Nilesh Patil commented Jul 25 '16, 5:15 a.m. | edited Jul 25 '16, 5:16 a.m.
 Hi Ralph,
Thank you for quick response.
I need server side precondition, so that user can follow specific format to create snapshot and baselines.For Snapshot I am able to get snapshot name but I am not able to get baseline name. Which operationId we need to use to get Baseline name. Sample code would be very much helpful.


permanent link
sam detweiler (12.4k6179201) | answered Jul 25 '16, 7:47 a.m.
I think all the classes and methods you would need for SCM Handling would be in com.ibm.team.scm.common.*;

remember this is an object oriented system, there is not a 'single' api, but a collection of objects, methods and data items.

Your answer


Register or to post your answer.