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

Publish DNG module attributes with RPE

How do I publish DNG module attributes using RPE? I am referring to a module artifact type, which has default and custom artifact attributes. How do I access these? 

I've studied the schema for DNG Text and DNG Module, as well as the sample DNG templates that come with RPE.
Thanks for your help!

0 votes


Accepted answer

Permanent link

 Bob, not sure when/how I learned about this. Thought it was on you tube videos.

In a container grab 
data/Source/artifact/collaboration/attributes/objectType/customerAttribute

Then check for the custom attribute @name
name=="your customer attribute name" (in quotes e.g. name=="specification_revision")

Then get the value (@value) contains the data held in the customer attribute.

Bob 3 selected this answer as the correct answer

0 votes


2 other answers

Permanent link

 Bob, there is a whole series of YouTube videos on how to do this. They are very helpful. This is where I started and have working RPE templates generating docs from DNG. RPE Template Tutorial


The newer versions of DNG (6.0.4+, maybe 6.0.3 - not 100% sure) has added visibility into "views" data source which is faster than the "modules" data source. Still trying to figure out how to use that one, but the "modules" data source works well.

Have fun,
David

0 votes

Comments

David, thanks for your response. I have reviewed about 10 videos at the link you provided, but none of them discuss accessing module attributes from DNG modules using RPE. Several of them explain how to access the title attribute of a module but no other attributes, whether default or custom ones. 

Can anyone shed some light on the technique needed to publish a DNG module attribute like "Security Level," which is a custom module attribute?


Permanent link

 Bob, not sure if you ever found a solution but the following has worked for me:


Configure a DNG Text data source using the URI https//[server]:[port]/rm/publish/resources?resourceURI=[module identifier]

You can now access the Module custom attributes using data/Source/artifact/collaboration/attributes/objectType/customerAttribute

The important bit is in the URI use "resourceURI" and not "moduleURI"

Hope this helps.
Paul

0 votes

Comments

Paul, thanks for the follow-up on this thread. What ultimately worked for me to access default and custom DOORS Next module attributes (important: I'm not talking about non-module artifact attributes) is as follows:

  1. Configure a data source configuration element with the reportable REST URI for a DOORS Next module (or POX profile). The URI that I used came from the "dataSource/info/about" branch of the "views" data source for publishing DOORS Next views.
  2. Navigate through queries to dataSource/artifact/collaboration/attributes/objectType in order to access default module attributes OR
  3. Navigate through queries to dataSource/artifact/collaboration/attributes/objectType/customAttribute in order to access custom (user-defined) module attributes

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
× 12,019

Question asked: Mar 02 '18, 1:09 p.m.

Question was seen: 4,394 times

Last updated: Jul 02 '19, 11:15 p.m.

Confirmation Cancel Confirm