Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

Add link to DM Resource using DM java API

I am using DM client to fetch model from Rational design manager. I need to add DNG artifact link to the existing model using DM java API.  Is there any way to do it.
I tried the following, but the link is not getting updated.
DmConfiguration configuration = client.getDefaultConfiguration(project);
            String uri = "https://example.com:9443/dm/models/246";
            DmResource resource = client.getResource(uri, configuration);
            if( resource != null ) {
                 resource.setResourceProperty("j.1:satisfy", "https://example.com:9443/rm/
                            resources/_Mx3j4ThDEeaLPOX_i9ti8Q");
                 DmEditingSession editingSession = client.createEditingSession(configuration);
                client.putResource(resource, editingSession);
                client.commitEditingSession(editingSession);
           }

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,995

Question asked: Sep 08 '16, 7:46 a.m.

Question was seen: 2,066 times

Last updated: Sep 08 '16, 7:49 a.m.

Confirmation Cancel Confirm