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

Parsing artifact URI, component URI, and configuration from Doors Next 7.0.3 URL

I am developing an OpenSocial widget for Doors Next Generation that is deployed in Jazz. My widget will allow for comparing the current module that is opened with that same module in different stream/configuration. To do this, my widget will have an input called "Module Comparison URL" where the user will put the Doors next URL for the module in the other stream. The user would obtain this URL from opening the module in the other stream, and then copying the URL that is in the browser. I was then going to parse out the artifact URI, component URI, and configuration URI from this URL by looking for the parameters below in bold to use for API calls since I noticed that the Doors Next URLs have the following pattern: https//server/rmartifactURI=artifactURIvalue&componentURI=componentURIvalue&vvc.configuration=configURIvalue. Is this a safe assumption to make?

0 votes



2 answers

Permanent link
Joshua,

I would not get this information from the URL because it can happen that all the parameters wont be there, I strongly suggest using API function called getCurrentConfiguration context that will give you all the information you need.

I already have this widget developed if You are interested.

0 votes


Permanent link

Hi Joshua


I wouldn't get these details from the browser URL because that could change e.g. in the next version of ELM - you could use share link to artifact because this URL won't change even as you upgrade, that will give you the resource URL and the configuration.

regards
Ian


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

Question asked: Dec 05, 8:39 a.m.

Question was seen: 187 times

Last updated: Dec 09, 4:12 a.m.

Confirmation Cancel Confirm