Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Create requirement in specific DNG component

 Hi,


I'm trying to create a requirement artifact in specific DNG component. I can do that on project level which as I understand uses a "default" component but not the component I want.

Is there any examples for the post call to do that?

I'm using Lyo library

serviceProviderUrl = client.lookupServiceProviderUrl(catalogURI, projectName); 

String requirementFactory = client.lookupCreationFactory(
serviceProviderUrl, OSLCConstants.OSLC_RM_V2,
OSLCConstants.RM_REQUIREMENT_TYPE);

ClientResponse response = client.createResource(requirementFactory, requirement,
OSLCConstants.CT_RDF,
OSLCConstants.CT_RDF);

Is there a component specific service provider?

I tried to change the URL for the requirementFactory and add componentURI and oslc_config.context parameters, but this didn't work.

appreciate any help

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 515
× 139
× 116
× 17

Question asked: Oct 11 '18, 9:57 a.m.

Question was seen: 2,533 times

Last updated: Oct 11 '18, 9:57 a.m.

Confirmation Cancel Confirm