Image traceability in DNG
Good Afternoon,
Including images in the rich text of a DOORS-Next Generation (DNG) artifact - let's call it artifact X - creates a separate 'File' format artifact - lets call it artifact Y - and 'inserts' it into artifact X. This occurs even if you paste the image from the clipboard. My question is: is there ANY form of traceability between the picture artifact Y and the artifact X that it is inserted/embedded in? I have developed a need for this as we have modules that artifacts are removed from when they are obsolete. However we wish to retain some of these artifacts rather than totally delete them from DNG, and so the obsolete artifacts are moved to an 'obsolete' folder. The issue is my method of detecting these artifacts that don't feature within the module (apply filter no modules listed in 'Where Used' attribute) do not filter out picture artifacts embedded in non-obsolete artifacts. These image/file artifacts quickly build up in a project, and with no way of detecting where they are used it makes it hard to manage them. What is the proposed method of dealing with these artifacts? Best Sam |
Accepted answer
Literally, the image is "embedded" in the text - one simple way is the same as an image referenced in a HTML web page. So basically when you identify the artifact that becomes obsolete, you need to parse its "primaryText" to see if any image(s) referenced there. The tag is usually <img> but you can just search the link to the image itself as it is of the form "rm/wrappedResources/<uuid>".
Sam Briggs selected this answer as the correct answer
Comments
Sam Briggs
commented Feb 02 '15, 2:35 p.m.
Hi Donald,
I believe you need to take "the other options".
|
One other answer
Not sure if this will help but once you have added an artifact to a module, you can select the artifact, right click and choose to explicitly add a artifact link from the menu. You choose the link you want, which could be a custom link like "obsolete" or something similar,
|
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.
Comments
I suppose one argument is that artifact Y, a picture, is a separate piece of information to any text that might go with it in artifact X. So embedding is generally not a good idea as DNG philosophy breaks separate information into separate artifacts.
However in practice, this text MUST ALWAYS accompany the image. I wish to reuse a single artifact, containing text and a picture, in many locations throughout DNG.
Not an answer to your original question, but related info: I believe that you can avoid this double artefact effect by using the 'Artifacts'/'Upload Artifact' menu (rather than cut and paste or import image from within an existing artefact) and then including the resulting artefact into you module or collection using 'Add an Existing Artifact'.
Hi Alastair
Yes! Thanks. I recently found this and am I'm the process of convincing everyone not to succumb to the temptation of pasting, and instead updating the images.