Add link to Requirement on DOORS NG [message #1700192] |
Tue, 30 June 2015 15:12 |
Carlos Gomez Messages: 63 Registered: October 2010 |
Member |
|
|
Hi,
I'm working on a OSLC consumer for DOORS NG (5.0.2) to add an external link using the code example of DoorsOauthSample.java.
These are the lines that I use to add a link:
// Get requirement
ClientResponse getResponse = connector.getClient().getResource(reqUrl, OSLCConstants.CT_RDF);
Requirement requirement = getResponse.getEntity(Requirement.class);
// Add link to update requirement
requirement.addSatisfiedBy(new Link(new java.net.URI(objUrl), "Satified By " + objName));
String etag = getResponse.getHeaders().getFirst(OSLCConstants.ETAG);
getResponse.consumeContent();
// Update the requirement with the proper etag
ClientResponse updateResponse = connector.getClient().updateResource(reqUrl, requirement, OSLCConstants.CT_RDF, OSLCConstants.CT_RDF, etag);
updateResponse.consumeContent();
The code does not show any error or execution problem. However, when I go to the modified requirement on DOORS, I cannot find the link, moreover, when I read again the requirement, the link is not there.
I confirm the code works well on DOORS 9.5, but I do not understand why it does not work on DOORS NG.
Thanks for your help
|
|
|
Powered by
FUDForum. Page generated in 0.02154 seconds