It's all about the answers!

Ask a question

How to fetch Module Baseline Artifacts using OSLC in DOORS Next Generation 5.0.2?


Nikhil Pachpande (2519) | asked Feb 01 '16, 8:29 a.m.
 Hi,
    I want to fetch artifacts which belong to module baseline. I have the artifact URLs (Got using the 'Show Permalink for this Artifact...' menu.) 

Sample URL :

https://vinw2k12doors4192.eqvm.local:9443/rm/resources/_cf402e96d72048c0b907a33f93035416?moduleBaseline=https%3A%2F%2Fvinw2k12doors4192.eqvm.local%3A9443%2Frm%2Fbaselines%2F_G7uBVcjkEeWwjMkExxZskQ

I have tried the following code :

ClientResponse getResponse = client.getResource(<URL>, OslcMediaType.APPLICATION_RDF_XML);
Requirement req = getResponse.getEntity(Requirement.class);

This code always returns the current version of the artifact which is present in the module. It does not return the version of the artifact which is present in the module baseline. It ignores the  "?moduleBaseline=https%3A%2F%2Fvinw2k12doors4192.eqvm.local%3A9443%2Frm%2Fbaselines%2F_G7uBVcjkEeWwjMkExxZskQ"   URL query parameter.


How do I get the version of the artifact which is present in the module baseline?

Thanks in advance.




Comments
Donald Nong commented Feb 01 '16, 7:56 p.m.

I haven't been able to find any OSLC API to access the module baseline information either. The only way I can get the "versioned" information is access the baseline URL (following moduleBaseline=) itself - but the response is in a quite different format to the "usual" response of a module artifact.

Be the first one to answer this question!


Register or to post your answer.