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

Create Link between RDM and DNG using Rational Design Management SDK

Hi.

I want to create a satfies link from Design Manager to DNG using the Rational Design Manager SDK available in the wiki. Therefore I fetch the model from the DmResource and modify it accordingly. Once the update to RDM has been performed the correct link is visible for the artifact in the DNG web client.
Unfortunately the link isn't shown in the RDM client for the RDM artifact. Anyway when I open the artifact using the Firefox Rest Client the link shown in RDF representation.

I assume that there is a problem with Web Client of RDM related links created with the SDK.

Here is the code I use:

String dmres = "resource.uri.....";
DmClient dmclient = new DmClient("jazz", "jazz", "https://localhost:9443/dm"); DmProject project = dmclient.getProject("PROJECT"); DmConfiguration configuration = dmclient.getDefaultConfiguration(project); DmResource dmr = dmclient.getResource(dmres, configuration);

Model model = dmr.getModel(); Resource def = model.getResource(dmres);
com.hp.hpl.jena.rdf.model.Property sub = ResourceFactory.createProperty("http://jazz.net/ns/dm/linktypes#", "satisfy"); com.hp.hpl.jena.rdf.model.Property type = ResourceFactory.createProperty("https://clm.localhost:9443/rm/resources/_s2ygYZ-_EeeNQrLim_S_uA"); model.add(def, sub, type); dmr.setModel(m); DmEditingSession editingSession = dmclient.createEditingSession(configuration); dmclient.setDescription(editingSession, "Sample changeset for saving Things Sample"); dmclient.putResource(dmr, editingSession); dmclient.deliverEditingSession(editingSession);

I'm using CLM 6.0.3.

Does anyone has an idea what to do?

Kind regards Matthias

0 votes



2 answers

Permanent link

 Try property is  http://open-services.net/ns/rm#satisfies .

RDNG cannot store links to AM resources in RDM, the link has to be stored in RDM. RDNG does an RDM OSLC query to get incoming the AM references to requirements and displays the outgoing (inverse) property. RM is expecting these properties to be defined by the OSLC Requirements Management specification.


0 votes

Comments

Hi Jim,

I'll give this try. Anyway when I verify the type defined for requirement's satisfaction links in the Project Link Types Management view I see that here
http://jazz.net/ns/dm/linktypes#satisfy is defined. There is also no possibility to change the link definiton.

Regards
Matthias


Permanent link

I recently found a way to create links between RDM and DNG. The way to this is documented in an article on open-services.net which can be found here. The only thing you need to add to the creation url is the oslc_config.context and the project uuid.

Here is a example how the url should look like:

https://your.host[:port]/dm/links?oslc_config.context=https://your.host[:port]/gc/configuration/4&projectId=projectUUID

Please note in the example the oslc_config.context is a Global Configuration. It also works with DM's local configurations. Additionally it's important to set the context type of the header to "application/X-oslc-common-link+xml".

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,956
× 516
× 51
× 3

Question asked: Sep 22 '17, 7:48 p.m.

Question was seen: 3,227 times

Last updated: Oct 18 '17, 9:52 a.m.

Confirmation Cancel Confirm