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

How to update DNG module using OSLC?

Hello,

How to update a module in DNG using OSLC update? I'm able to update an artifact using OSLC, but I'm not able to update a module using the same method. In particular, I want to replace an artifact in a module by another one, add/remove an artifact to/from a module. Is this possible with OSLC?

0 votes


Accepted answer

Permanent link
Hi,
     Adding/removing artifacts from a module via OSLC is currently not supported, What can be modified are module attributes.
Tuan Nguyen Minh selected this answer as the correct answer

0 votes


3 other answers

Permanent link
 Hi Tuan-

What application are you using in addition to DNG?
The Rational Lifecycle Integration Adapters-Tasktop Edition can support moving artifacts between modules in DNG as long as there is another application integrated with it. You can learn more about RLIA-TE here:

http://www-304.ibm.com/partnerworld/gsd/solutiondetails.do?&solution=46335&lc=en

Please feel free to reach out to me if you have any questions!
Thanks and Best
b

Beth Beese 
| Business Development Manager | Tasktop Technologies
phone: 647-938-3759
| web: task top.com | skype: beth.beese-tasktop


0 votes

Comments

Hi Beth,

 From your answer, what I understand is: it is possible to add artifacts in a module using oslc/oslc4j. Could you also please share the approach to do the same. Please correct me if i am wrong.


Permanent link

 Hi, is updating the Module Attributes (Type specifically) using OLSC supported in latest versions now.


Please let me know.

Thanks
Vaibhav

0 votes

Comments
Yes its possible.
You can set the instance shape of the module with the right URI of the type of the module you want.
If you are using OSLC4J API, then
RequirementCollection reqColl=  <>;
reqColl.setInstanceShape(Uri);
reqColl.updateResource(.....)

1 vote

hey, i tried the same. Its even returning 200 status code and updating Description and Title Attributes, Only Artifact Type is not getting updated.


Any idea why that might be happening. I am providing correct URI for new Instance Shape also.

Please let me know.

Thanks
Vaibhav 

If you can try this:
ResourceShape featureInstanceShape = RmUtil.lookupRequirementsInstanceShapes( serviceProviderUrl, OSLCConstants.OSLC_RM_V2, OSLCConstants.RM_REQUIREMENT_COLLECTION_TYPE, client, artifactType); requirement.setInstanceShape(featureInstanceShape.getAbout());

. . . client.updateReource(....);


Permanent link

 Hi, is updating the Module Attributes (Type specifically) using OLSC supported in latest versions now.


Please let me know.

Thanks
Vaibhav

0 votes

Your answer

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,944
× 516
× 139

Question asked: May 08 '15, 3:30 a.m.

Question was seen: 6,338 times

Last updated: Dec 24 '18, 5:19 a.m.

Confirmation Cancel Confirm