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?
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?
Accepted answer
3 other answers
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: tasktop.com | skype: beth.beese-tasktop
Hi, is updating the Module Attributes (Type specifically) using OLSC supported in latest versions now.
Please let me know.
Thanks
Vaibhav
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(....);