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

RRC+RPE: ReportableAPI using usecasediagrams is empty for diagrams included in modules

We use modules to build up a customer targeted document. That module includes artifacts of type "Use Case Diagram".
To retrieve all elements of the module we use the URL:

https://inst01.rth-de.ihost.com/rm/publish/resources?moduleURI=_QD5nUy8fEeORe99oaVdJLw&showEmbedTitles=true

The result contains what we expected. The artifacts "use case diagrams" are included, but we want to get the specific content for the use case diagrams, therefore use the "itemId" from the result and use that one for querying.

https://inst01.rth-de.ihost.com/rm/publish/usecasediagrams?resourceURI=_e54eafab4efa4333a3520acb21a2a79f

Unfortunately, the result is empty.
What are we doing wrong on this?

0 votes



One answer

Permanent link
This is expected result.
To get information about an artifact, we need to query using the base artifact UUID.
If we use the "binding" URL (i.e. _e54eafab4efa4333a3520acb21a2a79f ), then it is normal that there is nothing returned.

I think the problem here is that when we try to get the module's information via REST API, it doesn't conveniently return the base artifact UUID for you to query on.

I believe that this is handled by this defect:
Module context binding stores wrong "about" URI for use case diagram (84835)
Will be fixed in 5.0

At this moment, if you search the artifact id and get that specific usecase diagram, from the chain icon, you would see the UUID is different from the one you got, that one should be the base artifact UUID.

Hopefully this helps.

0 votes

Comments

Just to clarify, the issue is with the "reportable" REST API, which has the base URL https://<host:port>/rm/publish/. The general REST API will correctly expose the boundArtifact, such as
https://inst01.rth-de.ihost.com/rm/resources/_e54eafab4efa4333a3520acb21a2a79f?accept=*&private=true

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
× 332

Question asked: Nov 23 '13, 5:28 a.m.

Question was seen: 5,207 times

Last updated: Feb 17 '14, 9:43 p.m.

Confirmation Cancel Confirm