It's all about the answers!

Ask a question

Add link to DM Resource using DM java API


Sudipto Sarkar (631443) | asked Sep 08 '16, 7:46 a.m.
edited Sep 08 '16, 7:49 a.m.
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);
           }

Be the first one to answer this question!


Register or 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.