DNG 6.0 : Creating requirement inside a folder in DNG using OSLC.
I am able to create requirement using OSLC but it is getting created in Root Folder of the project. how can i create requirement in any of the folder i want if i have folder URI.
I am using createResource method for creating requirement.
client.createResource(requirementFactory, requirement, OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_RDF_XML);
I am using createResource method for creating requirement.
client.createResource(requirementFactory, requirement, OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_RDF_XML);
Accepted answer
Add the <nav:parent> tag (point to the desired folder) in the payload during the requirement creation.
Comments
Hi Donald,
Could you please tell me in little detail how can i add <nav:parent> tag and where. In order to make this happen.
Hi Donald,
nav:parent was already there but i was passing parent folder url as string instead URI object. Finally able to do that. Thanks.