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

How to access links defined in base artifact from a artifact within the context of a module?


Using the DNG REST API (through RPE) I can access each artifact contained in a specific module
dataSource/artifact/moduleContext/contextBinding/about

Then I can use and cast the "about" URI to a resources or a text datasource, to get more information on the artifact.
Like the attributes, links, etc

in my case, most links associated to the artifact are not in the artifact within the context of a module, but in the base artifact.
Is there a way, in RPE (using the reources, text, or module schema) to navigate to the base artifact.
I could not figure it out.

0 votes



One answer

Permanent link
In the module schema, for each artifact that compose the module, there is the information to access the artifact within the module context (dataSource/artifact/moduleContext/contextBinding/about) and the base artifact (dataSource/artifact/moduleContext/contextBinding/core)

To access the artifact within the context of the module, configure the resource data source as follow:
about.replace(/resources\/.*/,"publish/resources?resourceURI=")

To access the artifact within the folder (base artifact) configure the resource data source as follow:
about.replace(/resources\/.*/,"publish/resources?resourceURI=") + core

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

Question asked: Nov 11 '14, 10:51 p.m.

Question was seen: 4,374 times

Last updated: Apr 16 '15, 6:12 p.m.

Confirmation Cancel Confirm