I am extracting requirements from a DOORS module to an XML based file format via DXL. The URLs are later used to link an RQM test case to the requirements via OSLC. The problem is that the link discovery in DOORS does not work as the used URL is no valid OSLC link.
I am currently using the DXL method getResourceURL but it returns a link with the view encoded When I remove the view portion manually, the link discovery works; but that is only a workaround. How can I get the correct OSLC URL of my object via DXL? S.Gronau - Wed Aug 31 06:09:56 EDT 2016 |
Re: Reading OSLC URL from object getResourceURL is the correct way to get it via DXL. The view encoding will appear only if you access the object via a user created view. In other words, after you open the module, ensure Standard view is loaded. Then call getResourceURL on objects.
Hope that helps. |
Re: Reading OSLC URL from object Thanks for the answer. Unfortunately the view is needed, it is used as filter as we are not interested in all the requirements in the module. So is there a chance to get the URL without the view portion although a different view than the standard one is selected? |
Re: Reading OSLC URL from object S.Gronau - Wed Aug 31 08:59:37 EDT 2016 Thanks for the answer. Unfortunately the view is needed, it is used as filter as we are not interested in all the requirements in the module. So is there a chance to get the URL without the view portion although a different view than the standard one is selected? Ah, then stripping the view part of URL is probably the easiest option. Or, you need to handle it with the help of skip lists.. Get all object URLs (along with absolute number) from Standard view and put into a skip first, next load the required view and pull up the URLs of necessary objects from the skip list. |
Re: Reading OSLC URL from object S.Gronau - Wed Aug 31 08:59:37 EDT 2016 Thanks for the answer. Unfortunately the view is needed, it is used as filter as we are not interested in all the requirements in the module. So is there a chance to get the URL without the view portion although a different view than the standard one is selected? Grab the filter of the view with Filter f = current, load the standard view, reapply the filter and then call your getResourceURL():
Filter f = current;
load view "Standard view";
set(f);
filtering on;
Object o;
for o in current Module do{
print getResourceURL(o)"\n";
}
|