Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » Add link to Requirement on DOORS NG
Add link to Requirement on DOORS NG [message #1700192] Tue, 30 June 2015 15:12
Carlos Gomez is currently offline Carlos GomezFriend
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
Previous Topic:OSLC provider for DOORS 9.5 as OSLC consumer
Next Topic:OSLC Query to get requirements from a RequirementCollection on DOORS NG
Goto Forum:
  


Current Time: Thu Sep 19 10:49:11 GMT 2024

Powered by FUDForum. Page generated in 0.03843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top