Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: problems listing module names with incoming links
Topic Summary:
Created On: 10-Aug-2005 15:14
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10-Aug-2005 15:14
User is offline View Users Profile Print this message


Mary Miller

Posts: 36
Joined: 12-Sep-2002

All,

I am getting an interesting problem when I pull in the names of the modules that link to and from the current module from which I run the DXL code. In one case, I am getting a listing of STD modules that "link" into the current module. However, the STD modules do not have any links. The STD modules also do not have any deleted objects (was looking for deleted objects with a potential for links).

When I have combined the code that lists the modules that link into the current module with the script that lists the modules that link out of the current module, my printed data can be even more erroneous. I have had a printout of modules that are indicated as linking out of the current module, when the listed modules clearly have no relationship to the current module. So, I am not sure why the code is acting so strange. I will start with giving you the code that only captures module names that link inito the current module:

Report this to a Moderator Report this to a Moderator
 10-Aug-2005 17:14
User is offline View Users Profile Print this message


Mary Miller

Posts: 36
Joined: 12-Sep-2002

I figured this one out finally. Looks like I must have forgotten to save or something because when I purged all of the objects from the STD, the script ran as expected. So, apparently, on of the STD's deleted objects USED to link to the current module before objects were deleted.

Mary
Report this to a Moderator Report this to a Moderator
 15-Aug-2005 23:00
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

When creating/deleted objects or links its generally better to stage your desires in some sort of skpObjectsToDelete Skip list. This guarantees that you aren't deleting stuff inside some for loop that uses that stuff. Expect disaster DXL crash if you run the following:
for obj in mod do
{ hardDelete(obj)
flushDeletions()
}

Instead do this:
Skip skpDeletes = create()
for obj in mod do
{ put (skpDeletes, obj, obj)
}

for obj in skpDeletes do
{ hardDelete(obj)
}
flushDeletions().

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.